Monday, October 12, 2009

Re: [LINUX_Newbies] Re: how to configure daily backup

 

loyal_barber wrote:
>
>
>
>
> --- In LINUX_Newbies@ yahoogroups. com
> <mailto:LINUX_Newbies%40yahoogroups.com>, Hafiz Amir <eng_linux@. ..> wrote:
>>
>> Dear All,
>>
>> Please inform me how to configure tar for daily backup and
> monthly backup
>>
>>
>> Best Regards.
>> Hafiz Muhammad Amir
>
> You want to use cron and tar. Try reading
>
> man tar
> man crontab
>
> Loyal
>

Here is a simple yet effective approach, create a directory called
backup in /home (as root) create a file which lists the things you want
to back up, one per line e.g.
/root
/var
/home/user
/opt
These can be directories or individual files, call it the target file.
Do not include /home or /home/backup or just / in this file.

run (from a script) tar -c -a -t targets -g incremental.file -f output.tar

Trevor

__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
Recent Activity
Visit Your Group
New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Yahoo! Groups

Mom Power

Just for moms

Join the discussion

Yahoo! Groups

Mental Health Zone

Schizophrenia groups

Find support

.

__,_._,___

No comments:

Post a Comment