Giter VIP home page Giter VIP logo

databackup's Introduction

databackup

A bash script to backup data and transfer the archive with ftp, ftpfs, sshfs or swift.

databackup.sh Backup files: zip it, encrypt it and upload it to Internet (ftp server, cloud...). Local copy is possible.

USAGE:

databackup [-e] [-h] [-i] [-l] [-m] [-mf] [-mode ftp,ftpfs,swift] [-r <n>] <backup name> [<files>]

OPTIONS:

-e encrypt backup file - check CIPHER and BKPPASS settings in .ini file

-h this help

-i check file integrity (md5sum)

-l keep a local copy of the backup file - check LOCALBKPDIR settings in .ini file

-m send backup log by email - check mail section in .ini file

-mf send backup log by email only on failure

-mode 
	ftp (default): upload to ftp server (integrity check and backup files rotation is not possible)
	ftpfs : upload to ftp server by mounting it with fuse
	sshfs : upload to ssh server by mounting it with fuse
	swift : upload to openstack object storage

-r <n> activate backup files rotation and keep only <n> backup. 
   If <n> is not set, use default value set in .ini file.

INI FILE:

.ini file is used to configure backups (directories, password, mail settings etc).

For recurring backup, you can define a "\~/.<backup name>.ini" file.

If "\~/.<backup name>.ini" doesn't exist, "\~/.databackup.ini" will be used.

Files put in cli argument have the priority over files possibly defined in the .ini file.

Example:

databackup.sh -e -i -r -l -mode swift MyFileBackup /home/user/MyFile

databackup's People

Contributors

d4void avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.