Backing up is the process of making copies (a backup) of data which may be used to restore the original after a data loss event.
1
vote
0answers
28 views
Time Machine Server on Fedora [duplicate]
Possible Duplicate:
How can I (and should I) use my Linux file server as a Time Machine backup server for my Macs?
I was just wondering if anyone knew how to/or knew of a good guide to ...
2
votes
4answers
146 views
How to restore data atomically on a remote server?
I want to be able to backup and restore my home directory of a remote account.
The command I use are:
Backup
ssh myuser@myuser.server.com "tar jcf - ." > backup.tar.bz2
Restore
cat ...
2
votes
0answers
46 views
Run backup on HD plugged with systemd
When I plug a HD via USB, it should a) mount it b) run my backup
script.
What I currently have is backintime.service
[Unit]
Description="Runs backintime to backup."
[Service]
User=user
...
1
vote
2answers
140 views
How to monitor specific files in unix [duplicate]
Possible Duplicate:
How to run a command when a directory’s contents are updated?
Any one know how to monitor files in Unix. I want to take backup of that files when its modified and store ...
3
votes
0answers
147 views
light weight disk based backup solution
Currently I am using Dirvish to backup a handful remote machines, both Linux and Windows to local disks. But Dirvish hasn't seen any updates for many years and it has a couple of small annoyances ...
4
votes
3answers
639 views
Performing accurate snapshot and incremental backups to a remote server
I have a few Ubuntu (and potentially RHEL) servers I'd like to back up to a central backup server (via rsh/SSH). I'd like to do both snapshot and incremental backups. The goal is that if one of the ...
1
vote
1answer
148 views
How to let rsync additionally store an differential changelog in another directory?
I'm using rsync --link-dir to obtain daily snapshots with little space usage due to the hardlinking. It would however be nice to also have a directory that, while mirroring the original structure, ...
0
votes
2answers
132 views
Backup & restore from Linux to Windows while Linux is running
I have a lab with some Linux machines, some are Red Hat 5.1 machines installed on HPDL580 HW, and some are Linux installed on BLADE IBM machines.
Also I have laptop computer with Windows XP.
My ...
3
votes
0answers
171 views
How to merge multiple WebDAV accounts for backup?
I use davfs, aufs, rsync:
sudo mount -t davfs -o uid=wd,gid=wd,dir_mode=777,rw https://wd1.wd.wd/ /mnt/webdav1
sudo mount -t davfs -o uid=wd,gid=wd,dir_mode=777,rw https://wd1.wd.wd/ /mnt/webdav2
...
0
votes
2answers
428 views
Two exact copies of folder using FTP and command-line only
I'm looking for any solution that will allow me to emulate functionallity similar to Dropbox/rsync using only FTP protocol and command-line.
The general problem is, that I have to run it on a very ...
0
votes
0answers
61 views
rdiff-backup changes permissions of source directory
I recently found rdiff-backup which seems to be very useful incremental alternative to rsync.
But there's an issue, while trying to use the rdiff-backup to make a mirror of a folder in other one, it ...
3
votes
1answer
219 views
“tar --exclude-backups” does not exclude files with tilde at end
If I have the following directory:
$ ls -a foo
. .. a #a# a~ b b.bkp c .git .hg .svn
and call:
$ tar zcf foo-no-bkp.tar.gz --exclude-backups foo/
The resulting archive still has backup ...
1
vote
1answer
281 views
AutoMysqlBackup --lock-tables=false
I'm trying to use AutoMysqlBackup script to perform daily backups of my application.
Unfortunately on the first try it didn't served me how I thought it would.
I believe that the script has used the ...
0
votes
1answer
337 views
Got fatal error during xfer (Child exited prematurely)
I have a backup server which takes backup of other servers and in few days back the backup server started experiencing error and the not able to take back. I think the error log bellow could describe ...
2
votes
1answer
98 views
Backing Up to a Compressed Archive on Linux
How would you go about backing up just some files and subdirectories of a given directory to a compressed archive so that the tree structure could then easily be recreated from that archive.
...
0
votes
1answer
90 views
Creating the first backup
I heard that rsync isn't the best one when creating the first backup in terms of performance. Instead it is the best for the later backups. So I wonder what are some better commands for creating the ...
2
votes
1answer
141 views
Backing up partition using dd and changing files
I'm a Linux newbie. From what I've read, you can back up an entire partition like this:
dd if=/dev/sda1 of=/media/external/backup
Can anyone tell me if I need to worry about files being changed ...
1
vote
1answer
383 views
What do you filter / exclude list when doing backup with rsync? [closed]
I'm trying to build a comprehensive filter / exclude file, to prevent backuping stuff that doesn't make sense do backup, such as temporary / cache data or easily recreatable files.
I would appreciate ...
2
votes
1answer
180 views
remove unallocated space from a partition image
I have just created an image of an sd card using dd and the image is compressing down less than expected. I suspect this is because the card had not been zeroed out before I started to make the image. ...
5
votes
2answers
588 views
Run Script once a day with systemd
I want to run a backup script 10 minutes after booting up my machine but only once a day. Is it possible to build up such scenarios with systemd?
2
votes
3answers
2k views
How do I backup via rsync to a remote machine, preserving permissions and ownership?
Drive A is 2TB in a closet at home.
Drive B is 2TB in my office at work.
I'd like drive A to be the one I use regularly and
to have rsync mirror A to B nightly/weekly.
The problem I have with this ...
2
votes
3answers
498 views
How to clone linux installation onto an external harddisk?
I see a lot of dd related questions, but could not find answers to the following. If question/answers already exist, please point to them, then flag to close, delete or merge.
Can a working linux ...
3
votes
1answer
209 views
Byte-level versus file-level backups
This question is motivated from a reply by Craig Sanders. Thanks, Craig!
In what case, are byte or block level backups, i.e. disk or partition image backups, more suitable than file-based backups?
...
3
votes
2answers
4k views
Compress a folder with tar?
I'm trying to compress a folder (/var/www/) to ~/www_backups/$time.tar where $time is the current date.
This is what I have:
cd /var/www && sudo tar -czf ~/www_backups $time"
I am ...
1
vote
1answer
282 views
Automatic scheduled backup of website (/var/www and MySQL dump)
I've been trying to set up a scheduled backup for my server but i can't seem to get it working. I need to copy the contents of /var/www into a compressed file (tar?) in a folder in my home directory ...
1
vote
1answer
88 views
How to setup backup if the filesystem is read only
My remote server file system is read-only & its because my hard disk is broken .I want to take backup for taking any further action.
Is it possible to setup a manual backup for the affected ...
3
votes
1answer
182 views
How to compare attributes of two files on Linux ext4
cmp(1) will of course tell me if the contents of two files are identical, but in order to test restoring from backups I also wanted to compare the relevant (!) file attributes.
So if I did something ...
3
votes
2answers
201 views
Incrementally backup FTP to local computer
I want to backup a FTP directory (not backup to) with a cron script running daily. I'd prefer a solution that could sync the FTP to my local computer; only copy files changed and remove files that ...
0
votes
2answers
470 views
Check integrity of a dd backup
I just made a backup of an entire hard drive (50GB) over ssh via:
dd if=/dev/hda | buffer -s 64k -S 10m | ssh myuser@myhost "cat > ~/image.img"
What's now the best way to check the integrity of ...
4
votes
4answers
729 views
Best way to make encrypted backups while preserving permissions to a windows file system
For my home network I wanted to buy a NAS which supports disk encryption and NFS since it is important for me that the backup is encrypted but also that it preserves owner, groups and permissions ...
3
votes
2answers
4k views
How to copy between two remote hosts using tar piped into scp from remote server when behind a firewall?
I'd like to transfer a directory between two servers, but compress the directory on the remote host before transfer, and then uncompress to another host. I'm sure it's possible to pipe everything all ...
2
votes
3answers
394 views
Copy/backup all dirs containing files matching a regexp
I would like to do a backup where I recursively go through a dir structure and only get directories with files whose names matching a particular regexp. I would like to keep the directory structure, ...
2
votes
1answer
799 views
Clear unused space with zeros (btrfs)
How to clear unused space with zeros ? (btrfs)
I'm looking for something smarter than
cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero
Like FSArchiver is looking for "used space" and ...
1
vote
3answers
476 views
dd command for windows filesystem
dd is a handy tool for backing up a whole drive or filesystem in some situations. Now I am thinking about what if I use the tool for backing up Windows file-systems / drives (Windows 2003/2008) which ...
2
votes
3answers
1k views
How to clone/copy all file/directory attributes onto different file/directory?
I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself.
This does not work:
cp -v --attributes-only A B
...
8
votes
2answers
2k views
Clear unused space with zeros (ext3,ext4)
How to clear unused space with zeros ? (ext3,ext4)
I'm looking for something smarter than
cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero
Like FSArchiver is looking for "used space" ...
5
votes
3answers
392 views
Resume interrupted copying process
How to resume securely and reliably process of copying file $A into backup location $B done with pv "$A" > "$B" or cat "$A" > "$B" ?
(let's assume file $A is very big, e.g. LVM2 snapshot file)
...
4
votes
2answers
162 views
How to backup entire xen dom0 (on debian)
How do you go about creating a bootable backup ISO of my computer (dom0)?
I have tried remastersys and this backs up everything but Xen does not work properly. LiveCDs also do not work.
Does ...
4
votes
3answers
947 views
Migrating a Virtualbox virtual machine into a physical dual-boot system
I'm running a Linux Mint 12 virtual machine in Virtualbox. I would like to move it into a dual-boot setup with my Windows 7 installation. I have lot of settings in there, and apps installed, and my ...
2
votes
3answers
2k views
System image of running Debian system?
Is it possible to backup a running Debian system to some kind of image file that could simply be written back to another hard disk using dd in case of failures of the original (backed up) debian ...
2
votes
1answer
116 views
Overwrite file and apply file system rights of overwritten files?
I backed up some linux configuration files to a windows machine, so the file system rights were lost. Now I would like to restore my backed up configuration by overwriting the configuration currently ...
3
votes
3answers
109 views
Taking complete backup of System and then restoring?
I am using kubuntu 10.04 and now I want to install Mac on my PC.
I have my data scattered in over 200 Gb and I want take a backup such that with one command all my data is saved into a single file.
...
3
votes
2answers
498 views
On Mac OS X, how to encrypt a small folder and copy that to Google Drive or DropBox?
On Mac OS X, right now I use the following to back up a small project folder to a USB Flash drive:
alias a='alias'
a dateseq='date "+%Y-%m-%d %H:%M:%S"'
a backup_proj='cp -a ~/code/MyProj ...
3
votes
3answers
896 views
Temporary restore LVM snapshot of root
I have a snapshot of the root filesystem that I want to boot with - bring the machine into a state it was a few days ago, run some tests and then go back to where I am right now.
I tried editing ...
0
votes
3answers
2k views
Where, in automysqlbackup, do I add mysqldump parameters?
How to stop automysqlbackup's cron.daily script -- as installed and configured from apt-get install automysqlbackup -- throwing the following error:
mysqldump: Got error: 1142: SELECT,LOCK TABL ...
6
votes
2answers
205 views
Back up mysql server
I want to backup all databases, users and etc on our mysql sever.
I have come across the command mysqldump and believe I can use it like this? (Trying to backup a REMOTE server to our LOCAL machine)
...
7
votes
3answers
3k views
Give user permissions to all files and folders
I want to have a user who has access to all the files and folders on the system. This is for the purpose of using RSYNC on a local machine to backup a remote machine.
At the moment we are using the ...
1
vote
2answers
258 views
is it safe to backup ext4 partition with partimage , which is detected as a ext3 partition
I use partimage to backup my ext4 partition, but during backup, the partition was detected as an ext3 partition. So I'm wondering if this can cause something bad.
1
vote
1answer
239 views
Backup from remote server
I'm a novice so go easy. :) If it makes a difference I'm using Ubuntu/Debian machines.
I want to back up our dedicated web server to a local location in-house. This is for many reasons - I know that ...
5
votes
2answers
593 views
How to create a snapshot of a physical disk?
I have Windows 7 installed on one of my disks. I want to boot this Windows system in my Xen HVM, but I do not want the changes to be permanent. So I want to create a snapshot of my Windows 7 ...