Despite being very simplistic, I want to share my backup script. This will only work for you if you are running on a machine with rsync on it, which is most Linux, Unix machines.
Here is the code:
echo "Syncing ~/docs"
rsync -ave ssh local/folder user@:host:remote/folder
This is pretty much the entirety. I just choose a few different folders by listing those two lines a couple of times. I am sure there is a better way to do this, but it’s working for me.
I think it is a really good idea to have a backup plan figured out, because you never know when a hard drive is going to fail.
Post a Comment