[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

backing up an openbsd system

I am switching boxes and I want to backup the current box.  I thought to scp -r  the root of the current box to a directory on another box.  It seems that trying to copy /dev yields an infinite loop.  Clearly /dev is a little special.  But a single command to copy the box files is desireable.  Please advise.
0
astar666
Asked:
astar666
1 Solution
 
it_alchemistCommented:
It depends on what you are backing up to. If it is tape media you should probably use the dump commands. To another box you probably want to use tar or rsync. You can also use any of these tools to copy to another hard disk. Lastly, a convenient tool to use is the rsnapshot script which you can find out more about at http://www.rsnapshot.org 

It uses rsync and then hard links for redundant data so repeated backups don't take up any more space than it needs to. It also works very well on the wire for remote backups using SSH.

scp is not really designed for archiving though it may be fine for some purposes. rsync, dump and tar are your friends.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now