Quickly copy directories to a specified location, and vice versa.
- grep
- sed
- cut
- trash-cli
Add programs to ~/.config/quick-backup-cli/programs.csv for use with quick-backup-cli.
- Trash (if it exists) the backup directory.
- Make the backup directory.
- Copy the contents of the program directory to the backup directory.
- Trash (if it exists) the program directory.
- Make the program directory.
- Copy the contents of the backup directory to the program directory.
You can add programs to quick-backup-cli with the configure option when running the script, alternatively you can can create the file manually.
This is an example of a programs.csv file, located at ~/.config/quick-backup-cli/programs.csv:
Retroarch,/home/user/.config/retroarch/,/home/user/Drive/Games/Backups/Retroarch/
osu!,/home/user/.local/share/osu/,/home/user/Drive/Games/Backups/osuBackup/Explanation of columns (each value separated by a comma):
- The first column is the program name (only used within quick-backup-cli).
- The second column is the path to the directory that you would like to backup.
- The third column is the path to the backup directory.
The trailing / is required for the second and third column.