Last active
May 4, 2020 00:08
-
-
Save spidgorny/be33eeff13891ddb37950337e93d9a37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List samba shares | |
smbclient -L 192.168.1.189 -U depidsvy | |
# mount NFS | |
sudo mount 192.168.1.189:/volume1/photo /media/nas/photo | |
# mount samba share to a folder | |
sudo mount -t cifs -o username=depidsvy,password=$pw,uid=slawa,gid=users //192.168.1.189/photo /media/nas/photo2 | |
# mount SFTP | |
sudo sshfs -o allow_other,default_permissions,follow_symlinks,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 [email protected]:photo /media/nas/photo3 | |
# create zip from every folder | |
find ./* -type d -prune | xargs -I {} zip -r '/Volumes/big/slawa-dev-archive/2019/{}.zip' '{}'/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment