8

Using git as a backup system

In a crontab:
```
cd $dir
git add .
git commit -m "Auto Commit"
```

Comments
  • 2
    didn't you forget `git push remote_name branch_name
  • 0
    @py2js
    No
    They just pushed straight to Master.
    It was just another backup system for them
  • 3
    @fuhrmie531 I would say terminology wise its wrong, git is not a backup system but I don't see this as worst thing. It can be used for incremental backup and you will also be aware of changes made, so and so depends upon the use case. Also its my personal opinion, I may be wrong
  • 0
    @py2js i think the Problem was not the the termonology but that the git repo was local.
  • 1
    @Sourcerer What? how can it be local? OP mentioned in the comment that they also used `git push`
  • 0
    @py2js oh overread that sorry.
  • 1
    Wow, your friend don't know rsync
Add Comment