diff --git a/gayming/playstation2/backup-ops2l-vmc.bash b/gayming/playstation2/backup-ops2l-vmc.bash index d782824..7f3e5d4 100755 --- a/gayming/playstation2/backup-ops2l-vmc.bash +++ b/gayming/playstation2/backup-ops2l-vmc.bash @@ -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