I'm having difficulties getting rdiff-backup to properly ignore a path when doing a backup. I've got it ignoring one path in the excludes file, but not the following path ... which has me pretty confused. Does the following output look sane? (Any help is greatly appreciated!!)

(Hopefully I've included enough data to diagnose the problem.)
The situation is that /home/shares/share.ppsi/no.backup is skipped (thank
goodness), but that /home/shares/music is not skipped... but both paths are in
the exclude file which is used when rdiff-backup fires (in a script).

I've included the path structures for the various relevant paths and files, as
well as output from the ls -l command of the different paths, output of the
exclude file, and the script that calls rdiff-backup.


Here are the listings for two respective paths:

[EMAIL PROTECTED] backup-repo]# ll /home/shares
total 56
drwxrwsrwt  3 jae    ppsi-employees 4096 Mar 27 13:40 music
drwxrws---  4 jae    ppsi-employees 4096 Mar 13 12:49 script
drwxrws---  5 jae    ppsi-employees 4096 May  2 16:43 script.data
drwxrws--t  8 jae    ppsi-employees 4096 Jul 19 15:14 share.ppsi
[EMAIL PROTECTED] backup-repo]# ll /home/shares/share.ppsi
total 48
drwxrws--x    2 jae ppsi-employees 4096 Jul 26 12:03 automail
drwxrws--t    8 jae ppsi-employees 4096 Jul 26 10:06 forms
drwxrws--t    4 jae ppsi-employees 4096 Apr 28 22:34 no.backup
drwxrwsr-x    5 jae ppsi-employees 4096 Apr 28 22:43 users


Here is the exclude file:

[EMAIL PROTECTED] backup-repo] cat /home/shares/script/linux/backup-repo/rdiff-excludes

/home/shares/script/linux/backup-repo/rdiff-repo
/home/shares/script/linux/backup-repo/files
/home/shares/share.ppsi/no.backup
/home/shares/music


This is the script that runs rdiff-backup:
(Its output is captured to a text file.)

[EMAIL PROTECTED] backup-repo] cat /home/shares/script/linux/backup-repo/daily.sh

#!/bin/bash
# daily.sh
# Executes daily backup

backup_scripts="/home/shares/script/linux/backup-repo"
backup_home="/home/shares/script/linux/backup-repo"
backup_tree="/home"
exclude_paths="$backup_home/exclude-paths"
staging_path="/home/shares/script/linux/backup-repo/rdiff-repo"
archive_name="network-archive.tar"

logDirectory="/home/shares/script.data/backup/2"


date

rdiff-backup --exclude-filelist $backup_scripts/rdiff-excludes $backup_tree $staging_path/files

ls -F $staging_path
echo "-------------------"

ls -F $staging_path/files
echo -e "|--- Listed root of files: $staging_path and (root files) \n\n"

date


--- J.



_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to