If then # start backup /usr /local /bin /rsnapshot "$1" # push everything offsite to aws-s3 buckets and exit this session due to slow upload links echo '/home/backups/push-mirror-to-aws-s3' | /usr /bin /at now + 5 minuteĮlse echo "Usage: $0 " exit 1 fi Summing up # Sleep for 30 seconds to that laptop comes online /bin / sleep 30 # Verify and start backup /sbin / ping -q -c 30 192.168.2.25 >/dev /null # Try to wake up sleeping laptop at night and odd time as per cronjob /usr /bin /wakeonlan 48:2a:e3:5c: 16:bc home /backups /.keychain /backup-ssh-key #!/bin/bash # load ssh keys from keychain # vi /etc/sysconfig/network-scripts/ifcfg-eth0 If you are using RHEL / SL / Fedora / CentOS Linux, edit /etc/sysconfig/network-scripts/ifcfg-eth0: Output from my NAS server: Settings for eth0: Type the following command to see current status of wol for eth0:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |