Unlock ssh key at start of script

This commit is contained in:
RealStickman 2022-11-21 18:33:54 +01:00
parent 67e2614c36
commit e6d8f5ac51

View File

@ -8,6 +8,9 @@ sshkeypath=$HOME/.ssh/id_ed25519
# NOTE don't transfer to the storage box directly, leads to mangled file names # NOTE don't transfer to the storage box directly, leads to mangled file names
# see: https://serverfault.com/a/765951 # see: https://serverfault.com/a/765951
# unlock ssh key
ssh-add "$sshkeypath"
# transfer to nas # transfer to nas
rsync -uvr --progress /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows,YouTube} /mnt/lan1nas1/ rsync -uvr --progress /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows,YouTube} /mnt/lan1nas1/