D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Backups

 

Henry Bremridge wrote:
> Create a file list of all files that you want backing up
>
>     $ls -laF > files_to_back_up.txt
>
>         Once created go through the list and remove the files you do not want
>
>     $tar -cvf filename.tar --files-from=files_to_backup.txt
>
>         This will create a tar file of the files you want backing up
>         I suggest then
>      
>     $bzip2 filename.tar
>
>         (and yes you can include the compressing as part of the tar command but I 
> prefer doing it seperately. The tar creation is quick, the compression is SLOW )
>
> Done    
>
>
>   
or..

cd /home
tar cf neil-home.tar /home/neil
*wait*
bzip2 -9 neil-home.tar

then copy neil-home.tar.bz2 to a safe place..

Personally I tend to setup /home as a separate mount point... saves issues..

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html