use zip instead of tar.gz, also print the location of the archive
This commit is contained in:
parent
d50da86a43
commit
1f7ccd5176
1 changed files with 4 additions and 1 deletions
|
@ -3,9 +3,12 @@ function ssh-export
|
|||
set entry_directory "$PWD"
|
||||
|
||||
# Create the archive
|
||||
set output_file "$HOME/ssh_keys.zip"
|
||||
cd "$HOME/.ssh"
|
||||
tar cz --exclude='known_hosts*' -X environment -f "$HOME/SSH.tar.gz" *
|
||||
zip "$output_file" * -x 'known_hosts*' -x environment
|
||||
|
||||
# Returns to the entry directory
|
||||
cd "$entry_directory"
|
||||
|
||||
echo "Exported at $output_file."
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue