Backup script for Linux …

There are many ways to back up the important files one has on their system, from bloated software programs to simple scripts. In most cases, a simple script is sufficient. With that in mind, I searched for a simple script and found the following:

Automating backups with tar

I have modified the original script to accomplish the following:

  • Allow the user to “force” the creation of a full backup by specifying full on the command line.
  • Create a full year-end backup on 31 December.
  • Force an incremental backup when a full backup is performed. This is to prevent two full backups from occurring if Sunday is the 1st of the month or is 31 December.

You can download the modified script here. Once downloaded, rename the file to backup.sh.

To install and use the script, you can follow the instructions provided at the Automating backups with tar page. However, where referenced, replace backup.cron with backup.sh.

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: