Skip to content

A rsync wrapper to easily perform local/remote incremental backups.

License

Notifications You must be signed in to change notification settings

grussorusso/easybackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

easybackup

A simple Bash script for performing an incremental backup of a set of directories to a specified location (possibly to a remote server via SSH) through rsync on Linux.

The set of directories to backup is specified through a simple text file. Optionally, another file may be used to provide a list of patterns to exclude file and directories from the backup (e.g. hidden directories).

Installation

It is extremely easy to get a working copy of this software:

  1. Check requirements: rsync (and a Bash interpreter).

  2. Download the script from this repository.

  3. Done! You are ready to try it!

For Arch Linux users: easybackup is also available from AUR.

Usage

Your first run of easybackup is made of two phases:

  1. Choose the directories to be included in the backup. Prepare a file containing absolute path of chosen directories, one per line. E.g.:

     /home/me/Documents
     /home/me/Pictures
    
  2. Start the backup issuing the following command:

     ./easybackup -s <chosen_dirs_file> -d <destination_directory>
    

That's it! In the destination directory, you will find:

/path/to/destination/
                  |---- home/
                          |--- me/
                                |--- Documents/
                                         |---- ...
                                |--- Pictures/
                                         |---- ...
                                         |---- ...

You can get more details about available options and what easybackup does, issuing:

./easybackup -h

Remote backup through SSH

For a backup to a remote server (on which rsync is installed):

	./easybackup -s <chosen_dirs_file> -d <destination_directory> -r <server> [-u <username>]

Copying

This software is distributed under terms of GPLv3. You can find a copy of the license in this repository.

About

A rsync wrapper to easily perform local/remote incremental backups.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages