Lets you easily backup files and folders throughout the whole system (and not only from the users home-folder) without root permissions
Im a very fresh Linux user which means that my coding skills and understanding of the whole system itsself has limits. Thats why also constructive criticism is welcome.
Dot Kraken basically works in three steps
- Copy all defined files/folders into a backup directory named
root
, right next to the DotKraken-config-file - Delete all defined files/folders which are defined in DotKraken-config-file (This is like a cherry-picking step to give you the possibility to delete sensible content from backed up folders)
- Push to GitHub
Backup is done!
I found all available tools for the topic "Backing up DotFiles"
- very complicated
- using/requiring the DotFiles to be linked via symlinks
- are not able to backup system files outside of the users home-folder
$ git clone https://github.com/SHU-red/DotKraken.git ~
$ git clone https://github.com/YOU/DotKraken_Backup.git ~
$ cp -i ~/DotKraken/default.conf ~/DotKraken_Backup/DotKraken.conf
- Add Files to backup
- Add Files to not-backup (which will only be deleted within the backup folder)
- Activate Prompts
- Activate GitPush automatic
- Activate Logging
Just execute DotKraken.sh and as parameter provide the destination to your config-file
$ bash ~/DotKraken/DotKraken.sh ~/DotKraken_Backup/DotKraken.conf
To frequently auto-backup your important files, just open crontab -e
and add a linke like
# DotKraken Backup daily
0 0 * * * ~/DotKraken/DotKraken.sh ~/DotKraken_Backup/DotKraken.conf
This will cause a daily push of changes
- Your backup will be placed in the folder ~/DotKraken_Backup/root
- This root-folder will be erased and re-created at each and every backup to provide the clean up-to-date status of your system-files