User Tools

Site Tools


my_backup_pi_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
my_backup_pi_scripts [2016/11/06 18:12] walkeradminmy_backup_pi_scripts [2016/11/06 18:23] walkeradmin
Line 11: Line 11:
 \\  \\ 
 \\  \\ 
-===== Webserver1 Script (wevsvr1backup) Latest =====+===== Webserver1 Script (wikibackup) Latest =====
 <file> <file>
 #!/bin/bash #!/bin/bash
Line 18: Line 18:
 # #
 # #
-# Alan Walker - Aug 2016+# Alan Walker - Nov 2016
 # #
 # #
Line 36: Line 36:
 # copy files from cpg15x on webserver to this server # copy files from cpg15x on webserver to this server
 echo "Copying cpg15x files to /mnt/usbstorage/backups/webserver1/"$(date '+%Y-%m-%d') echo "Copying cpg15x files to /mnt/usbstorage/backups/webserver1/"$(date '+%Y-%m-%d')
-sudo sshpass -p "Cr00kh0rn52.." rsync --verbose --recursive --perms --executability --acls --xattrs --owner --group  pi@192.168.1.9:/mnt/usbhdd/cpg15x /home/pi/Backups/webserver1/$(date '+%Y-%m-%d')+sudo sshpass -p "Password" rsync --verbose --recursive --perms --executability --acls --xattrs --owner --group  pi@192.168.1.9:/mnt/usbhdd/cpg15x /home/pi/Backups/webserver1/$(date '+%Y-%m-%d')
 # #
 # #
my_backup_pi_scripts.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1