Site Tools


backup_script

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
backup_script [2025/06/20 19:04] – [Remarks] thilobackup_script [2025/06/20 19:06] (current) – [Goals] thilo
Line 6: Line 6:
  
   - You want to schedule a backup to be done via a cron job.    - You want to schedule a backup to be done via a cron job. 
-  - You want the script initiated from, and stored in a safe location  \\ on a server on the network(not on the router).+  - You want the script initiated from, and stored in a safe location  \\ on a server on the network (not on the router).
   - You do not wish to install SFTP just for these backups.   - You do not wish to install SFTP just for these backups.
  
Line 104: Line 104:
    # take date from localhost (i.e. backupserver) into backup filename    # take date from localhost (i.e. backupserver) into backup filename
    DATE=`date +%Y%m%d_%H%M`    DATE=`date +%Y%m%d_%H%M`
 +   
    pushd ${DIR2BACKUP} > /dev/null    pushd ${DIR2BACKUP} > /dev/null
        
backup_script.1750442683.txt.gz · Last modified: by thilo