On Tue, 26 Oct 2010 00:18:22 -0600
LuKreme <kremels@...> wrote:
|
| On 25-Oct-2010, at 17:50, Linda Hillier wrote:
| > On 10-10-25 04:04 PM, LuKreme wrote:
| >
| > You definitely want to make sure your exclusions contain full paths
| > including the beginning /, for example exclude /backup. I am not
| > familiar with using the wild card parameter (*) within rsnapshot so I
| > cannot speak to that.
| >
| > Linda Hillier
| > http://computerisms.ca
|
| On further checking, a LOT of folders that should be excluded are being backed up.
|
| # du -shc hourly.0/mail/usr/home/*/Maildir/ | tail -1
| 16.4G total
|
| despite Maildir/ being in the excludes. Similarly, /usr/ports is backed up in the snapshot
|
| I must be missing something rather basic.
|
Could the MailDir already exist in the snapshots.
Exclusions do just that. Exclude that directory from coping.
that also means it is excluded from deletion if the data already
exists in the backup.
In other words, could those 16.4 Gb just be old data?
Data that is now 'excluded' from both update and deletion.
To test you will need to manually delete those directories from the *.0
directories and then have a look again next time a backup is made.
Or look carfully though backup logs (if you have them).
This problem has caught me out myself, when I was first setting
up a backup system. Months later that old data was still present
though unchanged, even though it was long deleted in my original
source directories.
In summery: If you exclude a directory, then you need to remove it.
from at least the last 'snapshot' of each cycle. Or better still, from
all snapshots.
One alternative is to every so often (after exclusion changes)
just do a backup without any hardware linking. That is just make
a complete and full copy of your home to a empty directory.
This will not contain anything that is now excluded.
When you have done that you can use a 're-link duplicates' type program
to recover the hardlinks between the 'new complete backup' and the
previous backup cycle, so as to recover the disk space.
A program such as
http://www.cit.griffith.edu.au/~anthony/software/#linkdups
or one of the many other equivelents will do the task.
Actually I run this program between backup snapshots regardless, as
one cause of hardlink breaking is renaming a directory. This will
recover the hardlinks between the files. For a directory of photos
that could recover a LOT of disk space wasted due to duplicated files.
Anthony Thyssen ( System Programmer ) <A.Thyssen@...>
--------------------------------------------------------------------------
I am the terror that flaps in the night...
Arr Heck... Lets get dangerous!!! -- Dark Wing Duck
--------------------------------------------------------------------------
Anthony's Castle http://www.cit.griffith.edu.au/~anthony/
|