heartshare / shbackup Goto Github PK
View Code? Open in Web Editor NEWThis project forked from raphinou/shbackup
Simple backup shell scripts
This project forked from raphinou/shbackup
Simple backup shell scripts
shbackup -------- Here are simple shell scripts I use for some simple backup needs. Put on github for my own convenience. * Getting it and configuring it ------------------------------- # clone it from github cd /usr/local git clone git://github.com/raphinou/shbackup.git cd shbackup # copy sample files to final destination cp backup_vars.sh.sample backup_vars.sh cp backup.sh.sample backup.sh # edit backup_vars to set server name vi backup_vars.sh # edit backup.sh to only call needed scripts vi backup.sh # edit archive_file.sh to determine which directories/files are to be backed up vi archivefiles.sh # add an entry in /etc/crontab like this one: 32 23 * * * root cd /usr/local/shbackup/ && ./backup.sh 2>&1 1>/dev/null | grep -v "tar: Removing leading \`/' from member names" # if you want to upload archives to an FTP server and S3, you should # set the ftp password in the file ftppass and chmod 400 it, and install and configure s3cmd * Usage ------- Variables are defined in backup_vars.sh. Note that this file is sourced by each script. So if you start your backup at 23:59, it is possible that scripts in the same run have a different value of the date.... By default backups are created in a subdirectory of /data/backup named according to the date. Let the script backup.sh calls other scripts according to your need. Raphaël
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.