On 03/20/2011 08:31 AM, madu...@gmail.com wrote:
> Recall..
> I run now the following task every day tar -cvzf
> /rescue/website-$(date +%u).tgz /var/www/htdocs/*
> I want now to move these files from the local server to a remote server via
> ftp.
>
> any help.
>
> Thanks
man lftp
t
__
Recall..
I run now the following task every day tar -cvzf
/rescue/website-$(date +%u).tgz /var/www/htdocs/*
I want now to move these files from the local server to a remote server via ftp.
any help.
Thanks
On Fri, Jan 28, 2011 at 5:33 PM, wrote:
> madu...@gmail.com wrote:
>> Should I add to
On Fri, Jan 28, 2011 at 1:03 PM, madu...@gmail.com wrote:
> home folder for backup /backup
This is a tactical problem. If you actually read the "File System
Hierarchy" guidelines, you'll see that it should be in "/var" as
dynamic, volatile content, probably undar "/var/backup".
If that backup r
> -Original Message-
> From: centos-boun...@centos.org
> [mailto:centos-boun...@centos.org] On Behalf Of m.r...@5-cent.us
> Sent: Friday, January 28, 2011 1:07 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] backup script
>
> madu...@gmail.com wrote:
&g
madu...@gmail.com wrote:
> home folder for backup /backup
>
> On Fri, Jan 28, 2011 at 7:49 PM, wrote:
>> madu...@gmail.com wrote:
>>> I have reallocated it to /home
>>> thx
>> Please stop top posting.
>>
>> Relocated it to /home, as in /home/backup? Don't clutter your base
>> directories, that's
home folder for backup /backup
On Fri, Jan 28, 2011 at 7:49 PM, wrote:
> madu...@gmail.com wrote:
>> I have reallocated it to /home
>> thx
> Please stop top posting.
>
> Relocated it to /home, as in /home/backup? Don't clutter your base
> directories, that's very bad practice.
>
> mark
>
madu...@gmail.com wrote:
> I have reallocated it to /home
> thx
Please stop top posting.
Relocated it to /home, as in /home/backup? Don't clutter your base
directories, that's very bad practice.
mark
___
CentOS mailing list
CentOS@centos.org
htt
On Fri, 28 Jan 2011, madu...@gmail.com wrote:
To: CentOS mailing list
From: "madu...@gmail.com"
Subject: Re: [CentOS] backup script
I have reallocated it to /home
thx
On Fri, Jan 28, 2011 at 5:33 PM, wrote:
madu...@gmail.com wrote:
Should I add to my tar the following
I have reallocated it to /home
thx
On Fri, Jan 28, 2011 at 5:33 PM, wrote:
> madu...@gmail.com wrote:
>> Should I add to my tar the following option
>> -p, --preserve-permissions
>> extract all protection information
>> tar -cvzfp ..
>>
>> Thanks
>>
>> On Tue, Jan 25, 2011 at
madu...@gmail.com wrote:
> Should I add to my tar the following option
> -p, --preserve-permissions
> extract all protection information
> tar -cvzfp ..
>
> Thanks
>
> On Tue, Jan 25, 2011 at 7:10 PM, John Doe wrote:
> > From: "madu...@gmail.com"
> >
> >> I want to create bas
Should I add to my tar the following option
-p, --preserve-permissions
extract all protection information
tar -cvzfp ..
Thanks
On Tue, Jan 25, 2011 at 7:10 PM, John Doe wrote:
> From: "madu...@gmail.com"
>
>> I want to create bash script to have a zip copy from a website runn
From: "madu...@gmail.com"
> I want to create bash script to have a zip copy from a website running
> on linux /var/www/htdocs/* local on the same box on different
> directory
> I am thinking to do a local backup using crontab (snapshot my web)
> tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz
On 25/01/11 21:56, madu...@gmail.com wrote:
> Am thinking to have this in my script
>
> #!/bin/bash
> tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz /var/www/htdocs/*
> find /tmp/website/website*.tgz -ctime +5 -exec rm {} \; # removes
> older then 5 days
That should do in your case. Though, in
Am thinking to have this in my script
#!/bin/bash
tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz /var/www/htdocs/*
find /tmp/website/website*.tgz -ctime +5 -exec rm {} \; # removes
older then 5 days
crontab it
30 6 * * * /mypath/myscript
On Tue, Jan 25, 2011 at 10:45 AM, Nelson wrote:
> You
You could create a script and have a variable date --date="5 days ago"
append to your tar file and after that, combine it with if syntax. If match,
then rm.
HTH
On Tue, Jan 25, 2011 at 3:31 PM, madu...@gmail.com wrote:
> I want to create bash script to have a zip copy from a website running
>
Hi,
Try the ff:
On 1/25/11 4:31 PM, madu...@gmail.com wrote:
> I want to create bash script to have a zip copy from a website running
> on linux /var/www/htdocs/* local on the same box on different
> directory
> I am thinking to do a local backup using crontab (snapshot my web)
> tar -cvzf /tmp/w
I want to create bash script to have a zip copy from a website running
on linux /var/www/htdocs/* local on the same box on different
directory
I am thinking to do a local backup using crontab (snapshot my web)
tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz /var/www/htdocs/*
This command will creat
17 matches
Mail list logo