A simple backup script. Place the shell file into a directory you want to backup and run. Backs up all files and directories where script is located. Useful for non-developers like designers.
You must first setup the environment. You only have to do this once.
- Install
gitcli tool - Install
git lfsfrom https://git-lfs.github.com/ chmod u+x simple-backup.shto set user executable permission on shell file
- copy
simple-backup.shinto directory where backup is needed. - create a github repository and make note of its name
./simple-backup.shin the directory you want to backup
Alternatively, if you're not a developer or familiar with the terminal commands, you can do it all from Finder. Right click the simple-backup.sh file, and then select Open with in the menu. Choose Utilities/Terminal and select the box underneath to always open this type of file with the selected program. Then, whenever you want to backup your directory, simply double click the simple-backup.sh file.
This script uses Git Large File Storage (git-lfs) which allows you to version control large files up to 2GB each. At the moment, it is set to only track files with the .sketch extension.