backing up an openbsd system

Posted on 2005-05-12
Last Modified: 2013-12-09
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.
Question by:astar666
    1 Comment
    LVL 8

    Accepted Solution

    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

    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.


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now