rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Not excluding all paths in exclude file?


From: J. Norment
Subject: [rdiff-backup-users] Not excluding all paths in exclude file?
Date: Wed, 26 Jul 2006 13:34:51 -0500
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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:

address@hidden 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
address@hidden 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:

address@hidden 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.)

address@hidden 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]