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 revision
Previous revision
my_backup_pi_scripts [2016/11/06 18:36] walkeradminmy_backup_pi_scripts [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 86: Line 86:
 \\  \\ 
 ===== Cron Automation ===== ===== Cron Automation =====
-To automate this process, I am using the following Cron job (use sudo Crontab -e)+To automate this process, I am using the following Cron job (use crontab -e)
 \\  \\ 
 \\  \\ 
-    # Edit this file to introduce tasks to be run by cron. +<file> 
-    # +# This job is to backup the webserver files and database at 3am every sunday 
-    # Each task to run has to be defined through a single line +0 3 * * 0 /mnt/usbstorage/backups/scripts/websvr1backup 
-    # indicating with different fields when the task will be run +
-    # and what command to run for the task +
-    # +# This job is to backup the wiki server every sunday at 2am 
-    # To define the time you can provide concrete values for +0 2 * * 0 /mnt/usbstorage/backups/scripts/wikibackup 
-    # minute (m), hour (h), day of month (dom), month (mon), +</file>
-    # and day of week (dow) or use '*' in these fields (for 'any').# +
-    # Notice that tasks will be started based on the cron's system +
-    # daemon's notion of time and timezones. +
-    # +
-    # Output of the crontab jobs (including errors) is sent through +
-    # email to the user the crontab file belongs to (unless redirected). +
-    # +
-    # For example, you can run a backup of all your user accounts +
-    # at 5 a.m every week with: +
-    # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ +
-    # +
-    # For more information see the manual pages of crontab(5) and cron(8) +
-    # +
-    # m h  dom mon dow   command +
-    # +
-    # +
-    # This job is to backup the webserver files and database at 3am every sunday +
-    00 03 * * 0 /mnt/usbstorage/backups/scripts/websvr1backup | tee /mnt/usbstorage/backups/logs/$(date '+%Y-%m-%d')-websvr1backup.log +
-    +
-    +
-    # This job is to backup the wiki server every sunday at 3am +
-    00 02 * * 0 /mnt/usbstorage/backups/scripts/wikibackup | tee /mnt/usbstorage/backups/logs/$(date '+%Y-%m-%d')-wikiba$+
 \\  \\ 
 \\  \\ 
my_backup_pi_scripts.1478457419.txt.gz · Last modified: 2023/03/09 22:35 (external edit)