close Warning: Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 5 and Version 6 of administration/backup_method


Ignore:
Timestamp:
Apr 20, 2009, 3:10:24 PM (13 years ago)
Author:
hank
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • administration/backup_method

    v5 v6  
    6666}}}
    6767
     68Ryan's Rdiff Set-Up (Move to a different wiki)
     69{{{
     70###############################################################################
     71# RDiff-Backup
     72###############################################################################
     73alias rdb_papers_private="rdb_to_host rye@192.168.2.31 'Mac Papers.txt' papers"
     74alias rdb_media_private="rdb_to_host rye@192.168.2.31 'Mac Media.txt' media"
     75alias rdb_private_all="rdb_papers_private && rdb_media_private"
     76alias rdb_papers_punky="rdb_to_host rye@tipsy-public 'Mac Papers.txt' papers"
     77alias rdb_media_punky="rdb_to_host rye@tipsy-public 'Mac Media.txt' media"
     78
     79rdb_to_remote () {
     80 # Parameters and env. passwords
     81 SRC_URL=$1; FILE_LIST=$2; DEST_URL=$3; FLAGS=${4:-''}
     82 
     83 if ([ "${SRC_URL}" ] && [ "${FILE_LIST}" ]); then
     84   # Source files
     85   rdiff-backup ${FLAGS} \
     86     -v5 --print-statistics \
     87     --include-globbing-filelist "${FILE_LIST}" \
     88     --exclude '**/.Trashes' --exclude '**/.Spotlight-V100' \
     89     --exclude '**/.DS_Store' --exclude '**/._.DS_Store' \
     90     --exclude '**' \
     91     "${SRC_URL}" "${DEST_URL}"
     92 fi
     93}
     94
     95rdb_to_host () {
     96 HOST=$1; FILES=$2; DEST_DIR=$3;
     97 FILE_LIST="${HOME}/Documents/Systems/Mac/MacBook/Configs/RDiff/${FILES}"
     98 DEST_URL="${HOST}::/backup/rdiff/rye/${DEST_DIR}"
     99 rdb_to_remote "${HOME}" "${FILE_LIST}" "${DEST_URL}"
     100}
     101And that's it...
     102Here's a sample text file:
     103/*/*/Documents/Backups
     104/*/*/Documents/Microsoft User Data
     105/*/*/Documents/Papers
     106/*/*/Documents/Systems
     107/*/*/Library/Application Support/AddressBook
     108/*/*/Library/Calendars
     109}}}
     110
     111 
     112 
     113