formats

Add /var and /etc to CrashPlan Backups for Linux

Published on April 10, 2013, by + in linux.

Add /var and /etc to CrashPlan Backups for Linux | By default, CrashPlan excludes directories such as /var or /etc. However, it is easy to add these as directories to selectively backup. I’ll show you how!

formats

How to MySQL Dump and Recovery

Published on July 26, 2011, by + in sysadmin.

How to MySQL Dump and Recovery | MySQL has the ability to dump or backup an entire database to a single recoverable file. I’ll show you how to dump and also recover! Dump a MySQL database To dump a mysql database, the command is: $ mysqldump -u mysqlusername -p databasename > mybackup.sql Enter password: (enter your mysqlusername’s mysql password) For example if

formats

Rotate MySQL Backups With Logrotate

Published on March 4, 2011, by + in linux, sysadmin.

Rotate MySQL Backups With Logrotate | logrotate can be used to rotate and auto-purge any file, including mysql backups. This very server (scottlinux.com) backs up a mysql dump daily, keeping the previous 8 with this method. I’ll show you how: 1. Create the following file, editing as desired. This example backs up all mysql databases in one dump. Of course you

formats

Backup Gmail Email in Linux

Published on February 28, 2011, by + in linux, osx.

Backup Gmail Email in Linux | How can I backup my gmail email in Linux? On Linux (and OS X) you can use the command line program getmail. This how-to uses IMAP to connect to your gmail account. If you haven’t already, make sure to enable IMAP in the gmail settings! 1. Ok now install getmail in Ubuntu: sudo apt-get install

formats

Migrate System Packages Ubuntu

Migrate System Packages Ubuntu | How can I migrate a set of installed packages from one system to another in Ubuntu or Debian? Using dpkg you can create a list of installed packages which can then be applied to another system. This is also great for making an apt-get ‘backup’ of your desired package install. 1. On the old system:

formats

Rsync Over SSH

Rsync Over SSH | Here is a quick and easy way for transferring files via rsync over ssh. rsync [options] ssh [local source directory] [user@server]:[destination on server] Example: # rsync -avPz /home/bob/workstuff bob@192.168.1.125:~/ a (recursive, hidden files incl, etc. – the standard rsync option) v verbose P show Progress z compress data during transfer This will make a copy

formats

Recursively Copy or Backup with Rsync

Recursively Copy or Backup with Rsync | What is a good way to recursively copy contents of directory (including hidden files) to another directory? A simple rsync command is excellent for this! The command is simply: $ rsync -a /source /destination For example, I am backing up my entire home directory to another disk like so: $ rsync -a /home/stmiller /media/linuxbkup/bkup I

formats

Time Machine with netatalk and Linux

Time Machine with netatalk and Linux | How can I make a networked or remote Time Machine on a Linux server? You can use netatalk on your Linux server of choice to act as a networked Time Machine for OS X! I’ll show you how to set this up on CentOS, though this can work on any various Linux distro. 1. Make

Home Posts tagged "backup"