2023-10-08 19:41:13 +02:00
|
|
|
function ssh-export
|
|
|
|
# Save the entry directory
|
2023-10-08 19:43:22 +02:00
|
|
|
set entry_directory "$PWD"
|
2023-10-08 19:41:13 +02:00
|
|
|
|
|
|
|
# Create the archive
|
2023-10-08 19:43:22 +02:00
|
|
|
cd "$HOME/.ssh"
|
|
|
|
tar cz --exclude='known_hosts*' -X environment -f "$HOME/SSH.tar.gz" *
|
2023-10-08 19:41:13 +02:00
|
|
|
|
|
|
|
# Returns to the entry directory
|
2023-10-08 19:43:22 +02:00
|
|
|
cd "$entry_directory"
|
2023-10-08 19:41:13 +02:00
|
|
|
end
|