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
git
cli tool - Install
git lfs
from https://git-lfs.github.com/ chmod u+x simple-backup.sh
to set user executable permission on shell file
- copy
simple-backup.sh
into directory where backup is needed. - create a github repository and make note of its name
./simple-backup.sh
in 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.