|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to backup the home directory
Hello,
how can i safe my home directory??? what command is to use for that? thank you |
|
|||
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. |
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
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 |