Given the following snapshots:
zfs snapshot TANK/dataset@first
zfs snapshot TANK/dataset@second
zfs snapshot TANK/dataset@third
Am I correct in assuming that assuming there were no changes to TANK/dataset that all three snapshots show referred as "zero length"?
Even though there is no file data, there has to be meta data of some sort that needs to be stored.
How much physical space will each of these snapshots consume for meta data even though they contain no actual files?
To back up a web server (not running zfs), I was rsyncing to FreeNAS and then making a tar from the local copy after each synchronization.
I just learned a bit more about snapshots, and it occured to me that that was a horrible waste of space, that I should just be making snapshots.
Given that no more than 2% of the file system would change between synchronizations, a snapshot is going to be a lot smaller than a tar of the whole home directory of the web server, and will still preserve the status at different points in time. Correct?
If I do:
zfs snapshot TANK/serverbackup@start_YYYYMMDDHHMMSS
rsync
zfs snapshot TANK/serverbackup@end_YYYYMMDDHHMMSS
zfs snapshot TANK/serverbackup@start_YYYYMMDDHHMMSS
rsync
zfs snapshot TANK/serverbackup@end_YYYYMMDDHHMMSS
where: YYYMMSSDDHHMMSS represents an actual time stamp or other unique identifier
After many backups, I am going to have a lot of duplicate snapshots since the end of one backup and the start of the next backup should be identical. If I have a history of 100 backups, that's going to mean I have 99 duplicate/empty and essentially useless snapshots on my pool.
Are all these redundant snapshots going to consume significant space? (Server backup is about 6GB and has several thousand files.)
Should I be pruning the redundant snapshots to save space?
If so does it matter if I delete several "end" snapshots as a batch (will I be trapping space or creating some sort of fragmentation), or is it important to have the backup script find and delete an "end" snapshot before it creates it's "start" snapshot?
Thanks in advance for any advice/suggestions.
zfs snapshot TANK/dataset@first
zfs snapshot TANK/dataset@second
zfs snapshot TANK/dataset@third
Am I correct in assuming that assuming there were no changes to TANK/dataset that all three snapshots show referred as "zero length"?
Even though there is no file data, there has to be meta data of some sort that needs to be stored.
How much physical space will each of these snapshots consume for meta data even though they contain no actual files?
To back up a web server (not running zfs), I was rsyncing to FreeNAS and then making a tar from the local copy after each synchronization.
I just learned a bit more about snapshots, and it occured to me that that was a horrible waste of space, that I should just be making snapshots.
Given that no more than 2% of the file system would change between synchronizations, a snapshot is going to be a lot smaller than a tar of the whole home directory of the web server, and will still preserve the status at different points in time. Correct?
If I do:
zfs snapshot TANK/serverbackup@start_YYYYMMDDHHMMSS
rsync
zfs snapshot TANK/serverbackup@end_YYYYMMDDHHMMSS
zfs snapshot TANK/serverbackup@start_YYYYMMDDHHMMSS
rsync
zfs snapshot TANK/serverbackup@end_YYYYMMDDHHMMSS
where: YYYMMSSDDHHMMSS represents an actual time stamp or other unique identifier
After many backups, I am going to have a lot of duplicate snapshots since the end of one backup and the start of the next backup should be identical. If I have a history of 100 backups, that's going to mean I have 99 duplicate/empty and essentially useless snapshots on my pool.
Are all these redundant snapshots going to consume significant space? (Server backup is about 6GB and has several thousand files.)
Should I be pruning the redundant snapshots to save space?
If so does it matter if I delete several "end" snapshots as a batch (will I be trapping space or creating some sort of fragmentation), or is it important to have the backup script find and delete an "end" snapshot before it creates it's "start" snapshot?
Thanks in advance for any advice/suggestions.