Tag Info

Hot answers tagged

14

The -t argument will tell duplicity from what time to restore. duplicity -t 3D --file-to-restore FILENAME scp://uid@other.host/some_dir /home/me/restored_file Will restore FILENAME from 3 days ago.


7

You have to exclude unnecessary files. Good start is -x -x, --one-file-system don't cross filesystem boundaries (from man rsync(1)). That excludes filesystems you didn't specify explicitly. Remember that then you have to list all mount points you want to include. mount gives list for you. Another useful option is --exclude: --exclude=PATTERN ...


7

I think it's reasonable to want a full backup every so often: most of my machines are configured to do one every few months. There's nothing magic about that number: the right value is going to depend on how much data you have, how fast it changes, how likely you are to want to restore from anything other than the most recent snapshot, how much traffic and ...


6

If you just want to keep a remote copy of the file then using something based on rsync will probably work for you. Rsync only copies the parts of the file that have changed so it can reduce the amount of data you have to to copy. For windows you could use deltacopy or syncrify.


6

Yes you can, here is a tutorial to do just that.


6

No. First: there is not always an archive flag, it is a filesystem-specific thing. For example, in the case of bacula, differential backup means backing up the difference since the last full backup, and incremental backup means backup since the last differential or incremental backups. There is also a big spectrum of backup software which can do only full ...


5

Someone has already written a script that does this, and it has a lot of great features, plus it has been tested by many people for years. It is called "rsnapshot". I highly recommend "rsnapshot". It is easy to configure and will do a 3-day retention, or even more complex retention policies. http://www.rsnapshot.org/


5

I would probably write a completion file to the central server that includes the date and hostname; you could use this: #!/bin/bash # when each backup completes, write a completion file: ssh user@central-server "touch /path/to/completion-files/$HOST-$(date +%F).complete" And on the central server: #!/bin/bash # on the central server, run this before ...


5

I know it is annoying to "not answer" answer questions, but this seems to call for it. The impression I get from reading this is sounds like you are working from what you know how to implement to a solution, instead of a solution/business needs to how to implement it. The big picture here is that it sounds like you have been put in the position of the ...


5

What you are asking for is called a synthetic full backup, which refers to the process of getting a full backup by merging an incremental backup with a previous full backup on the destination side (ie: the backup server). I'm not familiar with Duplicity, but from their website it appears to not do synthetic full backups. You must keep all of the ...


5

I am assuming you are using one of the mayor distributions If I needed to do the same as you I would use git for everything related to config files (/etc, /usr/local/etc, etc) I would avoid to version bin files unless you are compiling your own packages. And I would use the native package manager of each distribution to replicate the installation of the ...


5

you can also give rdiff-backup a try. it has version for windows too. i use it for nightly backups of [in total] few hundreds GB of data.


5

Yes, they need to specify the copy_only option: http://msdn.microsoft.com/en-us/library/ms191495.aspx http://www.mssqltips.com/tip.asp?tip=1075 This option is not available in the GUI interface, so the backup would have to be done from a script or query window.


4

you could continue doing what you're currently doing with a few minor changes to your rsync backup scripts. rsync can run inside a VM and backup to a remote host via ssh, just as it can from a physical machine. e.g. i backup /etc, /usr/local/, /home, parts of /var and a few other directories from all my machines to /var/backups/hosts/$HOSTNAME on my backup ...


4

Do it via a NAS share (samba or NFS). I use Time Machine to back up to a ReadyNAS (which runs Linux under the hood). Here are my notes on how to do so. Enable NAS backups: - defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 Find MAC address of the machine to be backed up: - ifconfig en0 | grep ether | sed s/://g | sed ...


4

How often do you backup your servers? The standard backup is done nightly, there are a few backups that are done more frequently. How do you ensure that all of your Linux servers are properly backed up? The backup send a report with a good subject on success or failure. I check that I have received the status messages at least a couple times a ...


4

Short answer: yes Long answer: The file access times may differ but if you use rsync -ci that will force it to compute a checksum for the source and destination file. The -i option will give you verbose output for what changes in each file. Run it with -n to start out with and it will just tell you what it will do without transferring anything. You will ...


4

I suggest rsync. It's the standard tool for this sort of thing, and I gather it works on Windows as well.


4

Have you considered rsnapshot? It uses rsync for the incremental backup, but gives you as many snapshots as you want (and have space for). Similar to jcisio's suggestion, but fully packaged.


4

Another option besides using rsync is to configure mysql replication with each of the normal databases as masters, and the ones in your office as a slave for each master. You can read mysql's documentation here.. If you want to keep with the scp/rsync style backup, you can maybe add compression to the backup with bzip, or some other method. There is also ...


4

I've done some extensive searching in the last week for something similar. I have found no solutions to do all 4 steps. There are numerous blogs from home users who try the 'rsync to btrfs'-type of backups, and all of the major Btrfs wikis cover how to perform Btrfs snapshots. There are also quite a few people who are attempting different ways of rotating ...


4

You'll have to schedule backups to UNC paths using the command-line wbadmin tool, as you've noted in your comment. Be warned that backing-up to a UNC path results in only a single generation of backup being stored. Each backup erases the previous backup. This is not the behavior that you'd have been seeing with a locally-attached USB disk. An SMB mounted ...


4

Without application-level quiescing, your backups would be crash-consistent. The recovered VM would look like it had suddenly had its power cut off... For your purposes, it's important to understand how your application deals with sudden power loss or an unplanned hard reset. If it can recover gracefully, then the way Veeam backups are running should ...


3

I'm wondering if anyone can come up with a simpler, more efficient algorithm or add any ideas for a better way of accomplishing this. Yep - use rdiff-backup, rsnapshot, or some other option that you don't need to maintain. I'm not being obtuse here. I realize you said you want to write your own code. Sometimes the correct answer here is not what you ...


3

A newcomer to the scene is Attic https://attic-backup.org/ We used rdiff-backup for a few years as our primary backup method. It was great for what it did, but created tens/hundreds of thousands of small diff files across the course of a year. Most file systems and disks are going to struggle to deal with a million-plus file count. Backing up our 90GB ...


3

What you are trying to do with cp and rsync is create sets of backups with identical files hard-linked to each other. This can be very useful, which is why the rsync developers already though of this and included native functionality directly within rsync to accomplish this. This functionality is provided by the --link-dest option. Basically your rsync ...


3

ZFS-based filesystems support exposure of a .zfs/snapshot subdirectory that functions in the same manner as the NetApp example you gave. If you have a fileserver presenting home directories to users (via CIFS, NFS, etc.), a ZFS-based solution could provide this functionality. Options these days include NexentaStor, Solaris, OpenIndiana, FreeBSD.


3

I use a self written bash script for it using rsync and cpio: http://pastebin.com/uRdH2uQf So, the first thing I have done is create a directory structure. I work like this: create a backup every day, the 7th day (sunday) I take the last backup (previous week sunday) and put it in weekly. Every 4 weeks I keep a monthly backup. All these backups are ...


3

In the tape world this is often done so you can easily grab your full backups and ship them off-site/archive them/etc. If you are backing up to disk this is probably less of an issue for you, unless you are using a removable disk and want to be able to take the entire "full backups" drive off-site. Re: pool selection, I believe Bacula uses the running ...


3

Keep the previous dump and use rsync or even better, rdiff-backup ( http://www.nongnu.org/rdiff-backup/ ) through ssh instead of plain scp.



Only top voted, non community-wiki answers of a minimum length are eligible