Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Can you make a script to make backup every two days ? write that script please.

user-image
Question added by Deleted user
Date Posted: 2014/02/17
ghilman ahmed
by ghilman ahmed , System Administrator , Streaming Networks Pvt Ltd

This command backup the directories and put it in backup folder. but to run it in every two days you have to run it through cron job.add this script in crontab :crontab -e023 */2 * * insert_your_script_hereMake bash shell script of the command And Add this script in the cronjob:#!/bin/bashrsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /path/to/backup/folder

Deleted user
by Deleted user

Back up of what?

More Questions Like This