<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/backup</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 08:56:23 GMT</pubDate>
<item>
<title>(Bash) rsync backup - bionic</title>
<link>http://snipplr.com/view/66834/rsync-backup/</link>
<description><![CDATA[ <p>Incremental compressed copy/backup</p> ]]></description>
<pubDate>Tue, 21 Aug 2012 20:40:38 GMT</pubDate>
<guid>http://snipplr.com/view/66834/rsync-backup/</guid>
</item>
<item>
<title>(Bash) Linux backup script using rsync and hard-links - _reydin_</title>
<link>http://snipplr.com/view/65927/linux-backup-script-using-rsync-and-hardlinks/</link>
<description><![CDATA[ <p>This script will do a daily backup of directories. If the files has not changed then it creates a hard-link to the file. If the file has changed then it will copy the new file. The backup is not much larger than the directories being backed up.</p> ]]></description>
<pubDate>Wed, 04 Jul 2012 01:00:19 GMT</pubDate>
<guid>http://snipplr.com/view/65927/linux-backup-script-using-rsync-and-hardlinks/</guid>
</item>
<item>
<title>(Bash) backup into folder daily - adkatrit</title>
<link>http://snipplr.com/view/65862/backup-into-folder-daily/</link>
<description><![CDATA[ <p>i've got this running on an hourly cron.  works beautifully.</p> ]]></description>
<pubDate>Fri, 29 Jun 2012 07:36:39 GMT</pubDate>
<guid>http://snipplr.com/view/65862/backup-into-folder-daily/</guid>
</item>
<item>
<title>(Bash) Backup folders - kynatro</title>
<link>http://snipplr.com/view/64755/backup-folders/</link>
<description><![CDATA[ <p>Quick backup script to output all folders in a location to their own gzip files.</p> ]]></description>
<pubDate>Fri, 27 Apr 2012 03:44:25 GMT</pubDate>
<guid>http://snipplr.com/view/64755/backup-folders/</guid>
</item>
<item>
<title>(Bash) Recursively copy a directory for backup - klovera</title>
<link>http://snipplr.com/view/58939/recursively-copy-a-directory-for-backup/</link>
<description><![CDATA[ <p>Kudos to http://snipplr.com/view/26670/</p> ]]></description>
<pubDate>Wed, 21 Sep 2011 23:43:13 GMT</pubDate>
<guid>http://snipplr.com/view/58939/recursively-copy-a-directory-for-backup/</guid>
</item>
<item>
<title>(Bash) Script to Backup  MySQL databases - saibal</title>
<link>http://snipplr.com/view/53201/script-to-backup--mysql-databases/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 08 May 2011 15:20:48 GMT</pubDate>
<guid>http://snipplr.com/view/53201/script-to-backup--mysql-databases/</guid>
</item>
<item>
<title>(Bash) bash shell file for daily database backup - Run as CRON job - nikefido</title>
<link>http://snipplr.com/view/52579/bash-shell-file-for-daily-database-backup--run-as-cron-job/</link>
<description><![CDATA[ <p>Creates a daily backup and deletes any backup older than 60 days. 
Replace:
*DB_USER
*DB_PASSWORD
*DB_NAME 
*/path/to/backup
with your actual database name, credentials and path to where you want your backup to live.

Last note: you don't necessarily need to wrap your password in quotes. Some characters will cause it to break without them, however.</p> ]]></description>
<pubDate>Tue, 26 Apr 2011 06:16:33 GMT</pubDate>
<guid>http://snipplr.com/view/52579/bash-shell-file-for-daily-database-backup--run-as-cron-job/</guid>
</item>
<item>
<title>(Bash) Backup Directory and Content - tribal</title>
<link>http://snipplr.com/view/51726/backup-directory-and-content/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 07 Apr 2011 19:11:35 GMT</pubDate>
<guid>http://snipplr.com/view/51726/backup-directory-and-content/</guid>
</item>
<item>
<title>(Bash) Bash Backup Script - theriddlebrothers</title>
<link>http://snipplr.com/view/49058/bash-backup-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Feb 2011 01:24:24 GMT</pubDate>
<guid>http://snipplr.com/view/49058/bash-backup-script/</guid>
</item>
<item>
<title>(Bash) Backup ubuntu - lfatr</title>
<link>http://snipplr.com/view/41148/backup-ubuntu/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Sep 2010 22:19:59 GMT</pubDate>
<guid>http://snipplr.com/view/41148/backup-ubuntu/</guid>
</item>
<item>
<title>(Bash) Backup servers from a central backup server - eusonlito</title>
<link>http://snipplr.com/view/39964/backup-servers-from-a-central-backup-server/</link>
<description><![CDATA[ <p>This script let you back up your servers at once from a central backup server. First you must copy the central server ssh public key into the servers to backup (without password). After that you can install this script with a cron.</p> ]]></description>
<pubDate>Fri, 03 Sep 2010 19:46:34 GMT</pubDate>
<guid>http://snipplr.com/view/39964/backup-servers-from-a-central-backup-server/</guid>
</item>
<item>
<title>(Bash) Backup all MySQL databases - eusonlito</title>
<link>http://snipplr.com/view/39963/backup-all-mysql-databases/</link>
<description><![CDATA[ <p>Script to backup all MySQL databases and delete copies after X days</p> ]]></description>
<pubDate>Fri, 03 Sep 2010 19:41:14 GMT</pubDate>
<guid>http://snipplr.com/view/39963/backup-all-mysql-databases/</guid>
</item>
<item>
<title>(Bash) Bash (Command Line): Loop through directories in specified location, replacing directories in current directory (with backup) - karlhorky</title>
<link>http://snipplr.com/view/35126/bash-command-line-loop-through-directories-in-specified-location-replacing-directories-in-current-directory-with-backup/</link>
<description><![CDATA[ <p>This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them.

The script works by:

1. Iterating through the contents of the target directory (using the unix ls command)

2. Checking whether the current object is a directory

3. Moving the pwd directory to a backup location using the unix mv command

4. Moving the target location's directory to the present working directory

5. Printing out the modified directory's name using the unix echo command</p> ]]></description>
<pubDate>Sun, 23 May 2010 15:24:10 GMT</pubDate>
<guid>http://snipplr.com/view/35126/bash-command-line-loop-through-directories-in-specified-location-replacing-directories-in-current-directory-with-backup/</guid>
</item>
<item>
<title>(Bash) Simple Backup Script Template - Triconium</title>
<link>http://snipplr.com/view/33105/simple-backup-script-template/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 Apr 2010 17:55:42 GMT</pubDate>
<guid>http://snipplr.com/view/33105/simple-backup-script-template/</guid>
</item>
<item>
<title>(Bash) Copy Dir - reboltutorial</title>
<link>http://snipplr.com/view/29151/copy-dir/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 02 Mar 2010 16:09:30 GMT</pubDate>
<guid>http://snipplr.com/view/29151/copy-dir/</guid>
</item>
<item>
<title>(Bash) Simple rsync backupscript. - berkes</title>
<link>http://snipplr.com/view/26876/simple-rsync-backupscript/</link>
<description><![CDATA[ <p>This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files.

* KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this to remote authorized keys must be done with care: you will prbably want to whitelist one IP-adress.
* RHOST=ssh.example.com -- the host where to connect to using ssh, or rsync.
* RUSER=example-username -- the username on the host. Must have _read_ access in the SOURCE dit (see below).
* LPATH=$HOME/Archive/example-com/ -- where to place the backups
* RPATH=/var/www/example-com/ -- the to-be-backuped dir. 

You probably want to add this as script (`backup_example-com.sh`) in `~/bin`, or any other directory available in `$PATH`. And then add it to crontab.

See a howto here: http://troy.jdmz.net/rsync/index.html</p> ]]></description>
<pubDate>Fri, 22 Jan 2010 16:05:54 GMT</pubDate>
<guid>http://snipplr.com/view/26876/simple-rsync-backupscript/</guid>
</item>
<item>
<title>(Bash) Run Archivemail on all your IMAP folders. - berkes</title>
<link>http://snipplr.com/view/24111/run-archivemail-on-all-your-imap-folders/</link>
<description><![CDATA[ <p>Change 'username' (twice!) with your imap username,'password'with your imap password, and 'example.com' (twice!) with the url of your imap mailserver.

Works on: Ubuntu with Evolution, sqlite3 and archivemail installed. 
Evolution is required because evolution stores the available folders in IMAP. 
sqlite3 is requird to extract those available folders and recurse trough them.

This command looks up all the available folders in your imap box, recurses trough them and runs archivemail to archive all the online mail. 

NOTE: remove the -n (dy-run) flag to actually archive the items.
NOTE: remove the -v (verbose) flag to be less verbose.

TODO: option to purge empty directories.
TODO: store username, password and mailserverURL in a $VAR.</p> ]]></description>
<pubDate>Wed, 02 Dec 2009 04:49:15 GMT</pubDate>
<guid>http://snipplr.com/view/24111/run-archivemail-on-all-your-imap-folders/</guid>
</item>
<item>
<title>(Bash) MySQL Backup Script - troynt</title>
<link>http://snipplr.com/view/20848/mysql-backup-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 08 Oct 2009 15:27:34 GMT</pubDate>
<guid>http://snipplr.com/view/20848/mysql-backup-script/</guid>
</item>
<item>
<title>(Bash) insert backed up dumps from mysql - 1b0t</title>
<link>http://snipplr.com/view/20235/insert-backed-up-dumps-from-mysql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 Sep 2009 18:37:16 GMT</pubDate>
<guid>http://snipplr.com/view/20235/insert-backed-up-dumps-from-mysql/</guid>
</item>
<item>
<title>(Bash) MySQL backup using mysqldump - alvarezrilla</title>
<link>http://snipplr.com/view/15957/mysql-backup-using-mysqldump/</link>
<description><![CDATA[ <p>Will prompt for user password.</p> ]]></description>
<pubDate>Mon, 15 Jun 2009 15:34:23 GMT</pubDate>
<guid>http://snipplr.com/view/15957/mysql-backup-using-mysqldump/</guid>
</item>
</channel>
</rss>