Backing up a designated folder with cyclical repetition

Hey, today I will introduce you to a small bash script, which backs up a given folder on our server at a given time or day, possibly every few minutes.

script:

A catalog should be provided with the SOURCE, what we want to pack, while for KDOBELOWY we provide the path to the folder, where the copy should be. File should be given permissions 700.

Permissions:

If we want to, for the script to run itself, add it to the cron, (we enter in the terminal):

Then add it to the file, which we opened with the command above:

Thanks to this, our script will run every day at 01:00 in the night

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.