DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th November 2017
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default How to backup the home directory

Hello,

how can i safe my home directory???

what command is to use for that?

thank you
Reply With Quote
  #2   (View Single Post)  
Old 14th November 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

OpenBSD comes with four backup tools built-in. The dump(8) and restore(8) programs are probably the most useful for OpenBSD filesystem backups. The tar(1), cpio(1), and pax(1) utilities produce archives which can be used with other Unix-like operating systems.

There are many other third party backup and restore tools available to you from the Ports and Packages system. Choices range from the GNU version of tar() which has multi-volume capability, to utilities to manage media volumes, to central and distributed backup applications, to clients for cloud-based backup services.

----

This answer is very open-ended, because you have many choices, and many options.
Reply With Quote
  #3   (View Single Post)  
Old 15th November 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I use the tar(1) option which is simple and cheap.
1) Organize your /home directory and create any addiditional files for system backup. Hidden files and directories also should be copied to a backup directory
2) Generate a list of unhidden files and directories
$ ls /home/user > backup_list.txt
3) Edit and split the list if necessary. My backup media is DVD+R and I presently backup 7GB. - my data needs 2 disks.
3) Create a gzip'd tar archive from the list
# tar cvzf /home/backup/19Aug2017_bu1.tar.gz -I /home/jsh/backup_list.txt.
4) Generate an iso file of the *.tar.gz backup and burn to DVD. Check burned DVD and if trusted, put DVD in a safe place.
$ mkisofs -R -J 19Aug2017_disk1.iso 19Aug2017_bu1.tar.gz

Last edited by shep; 15th November 2017 at 01:17 AM.
Reply With Quote
  #4   (View Single Post)  
Old 15th November 2017
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 98
Default

I use rsnapshot which is in the repository.

It is very easy to set up and, thanks to the use of hard links, keeping several backups don't take too much space.
As there is no compression, recovering files is only a matter of going to the backup location and pick the desired files.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using rsync to synchronize or mirror your home directory files to an USB stick J65nko Guides 8 1st January 2014 08:55 PM
strange "~" directory in home directory gosha OpenBSD General 5 23rd February 2009 06:12 PM
FTP users sharing same home directory phreud FreeBSD General 6 11th November 2008 10:11 PM
backup mails on NAS directory milo974 OpenBSD General 3 8th August 2008 07:39 AM
Jails - mount: /usr/home: No such file or directory chris FreeBSD General 6 6th August 2008 10:47 PM


All times are GMT. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick