Here\'s one for the bash-fu wizards. No, actually, I\'m just kidding, you\'ll all probably know this except for me..
I\'m trying to create a backup shell script. The ide
GNU tar has --remove-files that will remove files once they've been added to the archive. v will cause it to list out files as it adds them. z will pipe the tar through gzip on the fly.
Your find solution is racy; a file may fit the criteria in between invocations, thus getting deleted but not backed up.