While working on a ticket and not ready to commit, it’s a good idea to backup all of our changes to an archive file.
The following script does all that and executed daily by cronjob automatically.
- create a file, say “backup” in /etc/cron.daily
- Type the following (change ‘
‘ to your own login name and to the git directory where source codes are located):
Make the file executable:
chmod +x /etc/cron.daily/backup