Skip to content

Instantly share code, notes, and snippets.

@jimwhitfield
Created February 2, 2021 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhitfield/7a93571da2e41088aeba757b8572f100 to your computer and use it in GitHub Desktop.
Save jimwhitfield/7a93571da2e41088aeba757b8572f100 to your computer and use it in GitHub Desktop.
cron entry to back up (by tar) list a list of files every 10 minutes
5,15,25,35,45,55 * * * * tar -C / -cvf $HOME/backup/files-`/bin/date +\%Y-\%m-\%d-\%H\%M`.tar --files-from=$HOME/backup/files.list
@jimwhitfield
Copy link
Author

list of files are all text-oriented config files
using tar and not compressed so that I can also diff them and delete older duplicate one(s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment