MatthewL Posted December 22, 2022 Posted December 22, 2022 I need to copy files in a folder i.e. /var/lib/unifi/backup/autobackups to a SMB share i.e. \\nas02\backup_unifi I've looked at rync and rclone but struggling to get it working. Any suggestions how I can copy this and then to either run manually or setup a cron job.
PaddyNewman Posted December 23, 2022 Posted December 23, 2022 (edited) on my very insecure Pi which handles logs, I use mount from "cifs-utils" and just mount the share in a script with my password in plaintext, if someones got to my Pi, they are in my room.. Can't get on my Pi as away from home but its something like this according to an old backup; sudo mount -t cifs //172.16.18.100/filtlog /mnt/localfiltlogs -o user=username,password=password The script then does something like cp -r /etc/e2g/logs/. /localfiltlogs I know I remove the mount afterwards because the Pi and server are rebooted often as test bits. I will try to remember to look at my script but I won't be at that device for some time and this is from some old google doc I have from trying things before! I do however have SMBv1 enabled because I am mildly unstable, and these machines have very restricted access so I am less worried. Edited December 23, 2022 by PaddyNewman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now