mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-12-22 10:42:55 +01:00
gayming/playstaton2/backup-ops2l-vmc.bash: add duperemove
This commit is contained in:
parent
8b087eacc6
commit
8d74ac52ea
@ -16,6 +16,12 @@ cp -arv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)"
|
||||
chmod -R 777 $VMCDIR
|
||||
chmod -R 777 $BACKUPDIR
|
||||
|
||||
# If duperemove is installed, perform FS based deduplication of backups
|
||||
if hash duperemove 2>/dev/null; then
|
||||
# recursive, dedupe, human-readable, hashfile is like ddrescue mapfile
|
||||
duperemove -rdh --hashfile=$BACKUPDIR/duperemove.hashfile $BACKUPDIR/
|
||||
fi
|
||||
|
||||
# Curiosity, show the space used
|
||||
du -hca --time $BACKUPDIR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user