Hey guys,
I just have about 10 folders to backup and have been trying to make a shell script that I can run and backup the folders to my external.
Right now I am just using the cp command to:
cp -r /folder1 /folder2 /folder3 /backuplocation
I realize this is a very crude way to backup files, and I am wondering if there is a better/more efficient way to do this? rsync? ditto?
Also, is there a way to have the script print it's progress so far? Kind of like a percentage or estimated time left in the terminal window?
You are probably wondering why I just don't use a backup program, but I am using this a learning experience, too.
Thanks!
I just have about 10 folders to backup and have been trying to make a shell script that I can run and backup the folders to my external.
Right now I am just using the cp command to:
cp -r /folder1 /folder2 /folder3 /backuplocation
I realize this is a very crude way to backup files, and I am wondering if there is a better/more efficient way to do this? rsync? ditto?
Also, is there a way to have the script print it's progress so far? Kind of like a percentage or estimated time left in the terminal window?
You are probably wondering why I just don't use a backup program, but I am using this a learning experience, too.
Thanks!