DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:backup_script

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:backup_script [2016-06-09 16:01]
194.75.78.178 Changed shell to bash. Oterwise it gives an error.
tips:backup_script [2020-01-03 17:43]
yair [An rsync alternative] formating
Line 108: Line 108:
 This script is far from being well written, so please feel free to do any improvements you like!  This script is far from being well written, so please feel free to do any improvements you like! 
  
-<code bash>+<file bash rsync-dw-backup.sh>
 #!/bin/bash #!/bin/bash
 #======================== #========================
Line 193: Line 193:
     tar -cjf ${backupdir}/archive/${bkname}-${mydate}.tar.bz2 ./${bkname}-0     tar -cjf ${backupdir}/archive/${bkname}-${mydate}.tar.bz2 ./${bkname}-0
 fi fi
-</code+</file
-The script uses an //exclude// file, listing all file and dir "pattern name" you wish not to include in the backup. Here is a copy of my ''wwwbackup-exclude-list.txt'' file:+The script uses an //exclude// file, listing all file and dir "pattern name" you wish not to include in the backup.\\ 
 +Here is a copy of my ''wwwbackup-exclude-list.txt'' file:
 <file> <file>
 data/.cache/* data/.cache/*
tips/backup_script.txt · Last modified: 2020-01-03 17:43 by yair