All about Information Technology!

backup

Backup your site files

Backup directory and subdirectories tar -c –recursion -p –file=mysite.backup.tar mysite/ -c create an archive –recursion all subdirectories -p preserve files permissions –file file output Compress gzip mysite.backup.tar

>>

, ,

Synchronize and back up all your important files

GoodSync automatically synchronizes and backs up all your important files between all your desktops, laptops, servers, and external drives. There is also a free version! Download it from here.

>>

, , , ,

How to backup or Mirror a Subversion Repository

Mirror SVN Repository svnadmin hotcopy /path/to/repository /path/to/mirror   Backup SVN Repository svnadmin dump /path/to/repository > /path/to/repository.dump   Backup SVN Repository and compress it svnadmin dump /path/to/repository | gzip > /path/to/repository.dump.gz   Backup SVN Repository, compress it and move it to another machine with scp svnadmin dump /path/to/repository | gzip > /path/to/repository.dump.gz ; scp -rp /path/to/repository.dump.gz [...]

>>

, , , ,

Create Backup in Windows using WbAdmin

There is a great tool in Windows to make backups, create scheduled backups and more. It’s name is WbAdmin. For example: To perform a backup of  c:\dir1 to volume d:   wbadmin start backup –backupTarget:d: -include:c\dir1 –systemstate -vsscopy

>>

, , ,

Backup your server files easily with rsync

If you would like to back up a directory on your server and copy only changed files to your local machine, you can use the rsync tool. Just issue the following command: rsync -vare ssh username@myserver.com:/home/username/myfiles/* /home/username/myserverbackups/ That’s it!

>>

, , , , ,

Backup SQL Server Database

To create a Full Database Backup using transact sql is simple. The following sql code does the trick: USE database_name; GO BACKUP DATABASE database_name TO DISK = ‘D:\DatabaseBackups\database_name.bak’ WITH FORMAT, MEDIANAME = ‘D_Backups’, NAME = ‘Full Backup of database_name‘; GO

>>

, , , , , ,

Backup MySQL Database

If you would like to take a mysql database backup from the terminal, all you have to do is to type the command below: mysqldump –opt -h localhost –user=root –password=your_password database_name > database_name_backup.sql that’s it!

>>

, , ,