Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged backup



« Prev 1 Next »
Simple backup script using Rsync
0 699 posted 8 years ago by brm
Script using tar to backup new file created 1 day before
1 804 posted 8 years ago by brm
There is a user-callback example in http://bazaar.launchpad.net/~bit-team/backintime/user-callback/view/head:/user-callback.apt-backup which will backup all package selections, sources and repository keys which are necessary to reinstall exactly the...
0 824 posted 9 years ago by garretjames
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.
1 776 posted 11 years ago by _reydin_
i've got this running on an hourly cron. works beautifully.
0 537 posted 11 years ago by adkatrit
Kudos to http://snipplr.com/view/26670/
0 600 posted 12 years ago by klovera
0 597 posted 12 years ago by saibal
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 nec...
1 712 posted 12 years ago by nikefido
0 541 posted 12 years ago by tribal
0 553 posted 13 years ago by theriddlebrothers
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.
0 515 posted 13 years ago by eusonlito
Script to backup all MySQL databases and delete copies after X days
1 533 posted 13 years ago by eusonlito
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 (us...
0 718 posted 13 years ago by karlhorky
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 t...
0 580 posted 14 years ago by berkes
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 beca...
1 795 posted 14 years ago by berkes
1 633 posted 14 years ago by troynt
0 495 posted 14 years ago by 1b0t
Will prompt for user password.
0 511 posted 14 years ago by alvarezrilla
About the dd command: dd if=<source> of=<target> bs=<byte>("USUALLY" some power of 2, not less than 512 bytes(ie, 512, 1024, 2048, 4096, 8192, 16384[/b], but can be ANY reasonable number.) skip= seek= conv=<conversion>. Source is the data being...
0 545 posted 15 years ago by webonomic
Useful to quickly backup a folder by synchronizing it to another partition/disk.
0 480 posted 15 years ago by Dorgendubal
The -P handles partial transfers, I'm using this for big audio/video files.
2 670 posted 16 years ago by mandric
0 443 posted 17 years ago by jonathanbp
« Prev 1 Next »