Need Idea to make Backup

Need Idea to make Backup

am 13.01.2010 10:53:29 von Jens Geier

Hello,

my idea is to make a backup of some paths of my laptop via PHP.

I like to use a MySQL Datebase to trace which file was uploaded from which
path and so on.

Also it should be uses to look up it is nessasery to backup this file
because it was changed since last time or not.

All this files should be uploaded to the SERVER in a special folder where
this files run to a tape backup machine.

I hope some one can give me some ideas for this.

Kind Regards
Jens Geier




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 13.01.2010 11:09:57 von Ashley Sheridan

--=-SHC7Svp4DU84Kcdx8kos
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:

> Hello,
>
> my idea is to make a backup of some paths of my laptop via PHP.
>
> I like to use a MySQL Datebase to trace which file was uploaded from which
> path and so on.
>
> Also it should be uses to look up it is nessasery to backup this file
> because it was changed since last time or not.
>
> All this files should be uploaded to the SERVER in a special folder where
> this files run to a tape backup machine.
>
> I hope some one can give me some ideas for this.
>
> Kind Regards
> Jens Geier
>
>
>
>


There's a few ways to go about doing this, but I reckon you should do
something similar to the following:


* schedule a cron job to run as often as you want the backup to be
done, and have the cron call a script
* the script can either be php and use your own code to create
copies of files and check file dates for backup purposes, or use
the rsync tool which pretty much does all of this for you
automatically
* update a database as you need. this can be done either from a
php script or directly via mysql on the console


If you do use PHP for this, you'll want to code it as a CLI script
rather than a web page script. On the whole it won't make much of a
difference, but obviously some global variables will change a bit.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-SHC7Svp4DU84Kcdx8kos--

Re: Need Idea to make Backup

am 13.01.2010 14:57:50 von Jens Geier

Hello Ashley,

yes rsync is a good idea, but does this also work if there is only a
internet conection to may SERVER ?

Kind Regards
Jens Geier

"Ashley Sheridan" schrieb im Newsbeitrag
news:1263377397.5952.60.camel@localhost...
> On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>
>> Hello,
>>
>> my idea is to make a backup of some paths of my laptop via PHP.
>>
>> I like to use a MySQL Datebase to trace which file was uploaded from
>> which
>> path and so on.
>>
>> Also it should be uses to look up it is nessasery to backup this file
>> because it was changed since last time or not.
>>
>> All this files should be uploaded to the SERVER in a special folder where
>> this files run to a tape backup machine.
>>
>> I hope some one can give me some ideas for this.
>>
>> Kind Regards
>> Jens Geier
>>
>>
>>
>>
>
>
> There's a few ways to go about doing this, but I reckon you should do
> something similar to the following:
>
>
> * schedule a cron job to run as often as you want the backup to be
> done, and have the cron call a script
> * the script can either be php and use your own code to create
> copies of files and check file dates for backup purposes, or use
> the rsync tool which pretty much does all of this for you
> automatically
> * update a database as you need. this can be done either from a
> php script or directly via mysql on the console
>
>
> If you do use PHP for this, you'll want to code it as a CLI script
> rather than a web page script. On the whole it won't make much of a
> difference, but obviously some global variables will change a bit.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 13.01.2010 14:59:27 von Ashley Sheridan

--=-b8RuBOk0pGmcMWKSKJm+
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:

> Hello Ashley,
>
> yes rsync is a good idea, but does this also work if there is only a
> internet conection to may SERVER ?
>
> Kind Regards
> Jens Geier
>
> "Ashley Sheridan" schrieb im Newsbeitrag
> news:1263377397.5952.60.camel@localhost...
> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
> >
> >> Hello,
> >>
> >> my idea is to make a backup of some paths of my laptop via PHP.
> >>
> >> I like to use a MySQL Datebase to trace which file was uploaded from
> >> which
> >> path and so on.
> >>
> >> Also it should be uses to look up it is nessasery to backup this file
> >> because it was changed since last time or not.
> >>
> >> All this files should be uploaded to the SERVER in a special folder where
> >> this files run to a tape backup machine.
> >>
> >> I hope some one can give me some ideas for this.
> >>
> >> Kind Regards
> >> Jens Geier
> >>
> >>
> >>
> >>
> >
> >
> > There's a few ways to go about doing this, but I reckon you should do
> > something similar to the following:
> >
> >
> > * schedule a cron job to run as often as you want the backup to be
> > done, and have the cron call a script
> > * the script can either be php and use your own code to create
> > copies of files and check file dates for backup purposes, or use
> > the rsync tool which pretty much does all of this for you
> > automatically
> > * update a database as you need. this can be done either from a
> > php script or directly via mysql on the console
> >
> >
> > If you do use PHP for this, you'll want to code it as a CLI script
> > rather than a web page script. On the whole it won't make much of a
> > difference, but obviously some global variables will change a bit.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >
>
>
>


I don't understand what you mean?

Ps, please try not to top-post.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-b8RuBOk0pGmcMWKSKJm+--

Re: Need Idea to make Backup

am 14.01.2010 10:12:45 von Jens Geier

"Ashley Sheridan" schrieb im Newsbeitrag
news:1263391167.5952.62.camel@localhost...
> On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>
>> Hello Ashley,
>>
>> yes rsync is a good idea, but does this also work if there is only a
>> internet conection to may SERVER ?
>>
>> Kind Regards
>> Jens Geier
>>
>> "Ashley Sheridan" schrieb im Newsbeitrag
>> news:1263377397.5952.60.camel@localhost...
>> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>> >
>> >> Hello,
>> >>
>> >> my idea is to make a backup of some paths of my laptop via PHP.
>> >>
>> >> I like to use a MySQL Datebase to trace which file was uploaded from
>> >> which
>> >> path and so on.
>> >>
>> >> Also it should be uses to look up it is nessasery to backup this file
>> >> because it was changed since last time or not.
>> >>
>> >> All this files should be uploaded to the SERVER in a special folder
>> >> where
>> >> this files run to a tape backup machine.
>> >>
>> >> I hope some one can give me some ideas for this.
>> >>
>> >> Kind Regards
>> >> Jens Geier
>> >
>> > There's a few ways to go about doing this, but I reckon you should do
>> > something similar to the following:
>> >
>> > * schedule a cron job to run as often as you want the backup to be
>> > done, and have the cron call a script
>> > * the script can either be php and use your own code to create
>> > copies of files and check file dates for backup purposes, or use
>> > the rsync tool which pretty much does all of this for you
>> > automatically
>> > * update a database as you need. this can be done either from a
>> > php script or directly via mysql on the console
>> >
>> > If you do use PHP for this, you'll want to code it as a CLI script
>> > rather than a web page script. On the whole it won't make much of a
>> > difference, but obviously some global variables will change a bit.
>> >
>> > Thanks,
>> > Ash
>> > http://www.ashleysheridan.co.uk
>> >
>
> I don't understand what you mean?
>
> Ps, please try not to top-post.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
Hello Ashley,

i try to make a backup from some paths of my local laptop harddrive to a
folder on my server. Even if i'm not in the company.

If i'm outside (this time i'm in China) i have to copy it through the
Internet that is using http or ftp transport protocol.

The start of the copy is when the user clicks to a buttom and start the
backup process.

Kind Regards
Jens Geier



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 14.01.2010 11:06:12 von Ashley Sheridan

--=-ZXAhArPwA3O73HVjlfoc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:

> "Ashley Sheridan" schrieb im Newsbeitrag
> news:1263391167.5952.62.camel@localhost...
> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
> >
> >> Hello Ashley,
> >>
> >> yes rsync is a good idea, but does this also work if there is only a
> >> internet conection to may SERVER ?
> >>
> >> Kind Regards
> >> Jens Geier
> >>
> >> "Ashley Sheridan" schrieb im Newsbeitrag
> >> news:1263377397.5952.60.camel@localhost...
> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
> >> >
> >> >> Hello,
> >> >>
> >> >> my idea is to make a backup of some paths of my laptop via PHP.
> >> >>
> >> >> I like to use a MySQL Datebase to trace which file was uploaded from
> >> >> which
> >> >> path and so on.
> >> >>
> >> >> Also it should be uses to look up it is nessasery to backup this file
> >> >> because it was changed since last time or not.
> >> >>
> >> >> All this files should be uploaded to the SERVER in a special folder
> >> >> where
> >> >> this files run to a tape backup machine.
> >> >>
> >> >> I hope some one can give me some ideas for this.
> >> >>
> >> >> Kind Regards
> >> >> Jens Geier
> >> >
> >> > There's a few ways to go about doing this, but I reckon you should do
> >> > something similar to the following:
> >> >
> >> > * schedule a cron job to run as often as you want the backup to be
> >> > done, and have the cron call a script
> >> > * the script can either be php and use your own code to create
> >> > copies of files and check file dates for backup purposes, or use
> >> > the rsync tool which pretty much does all of this for you
> >> > automatically
> >> > * update a database as you need. this can be done either from a
> >> > php script or directly via mysql on the console
> >> >
> >> > If you do use PHP for this, you'll want to code it as a CLI script
> >> > rather than a web page script. On the whole it won't make much of a
> >> > difference, but obviously some global variables will change a bit.
> >> >
> >> > Thanks,
> >> > Ash
> >> > http://www.ashleysheridan.co.uk
> >> >
> >
> > I don't understand what you mean?
> >
> > Ps, please try not to top-post.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> Hello Ashley,
>
> i try to make a backup from some paths of my local laptop harddrive to a
> folder on my server. Even if i'm not in the company.
>
> If i'm outside (this time i'm in China) i have to copy it through the
> Internet that is using http or ftp transport protocol.
>
> The start of the copy is when the user clicks to a buttom and start the
> backup process.
>
> Kind Regards
> Jens Geier
>
>
>


The script needs to be set up on your local machine. I don't think HTTP
will help you much here, as that isn't great for transferring files
upstream I've found. Googling 'rsync ftp example' brings about over
230,000 results, have you actually tried looking?

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-ZXAhArPwA3O73HVjlfoc--

Re: Need Idea to make Backup

am 14.01.2010 12:32:55 von Jens Geier

"Ashley Sheridan" schrieb im Newsbeitrag
news:1263463572.5952.71.camel@localhost...
> On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>
>> "Ashley Sheridan" schrieb im Newsbeitrag
>> news:1263391167.5952.62.camel@localhost...
>> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>> >
>> >> Hello Ashley,
>> >>
>> >> yes rsync is a good idea, but does this also work if there is only a
>> >> internet conection to may SERVER ?
>> >>
>> >> Kind Regards
>> >> Jens Geier
>> >>
>> >> "Ashley Sheridan" schrieb im Newsbeitrag
>> >> news:1263377397.5952.60.camel@localhost...
>> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>> >> >
>> >> >> Hello,
>> >> >>
>> >> >> my idea is to make a backup of some paths of my laptop via PHP.
>> >> >>
>> >> >> I like to use a MySQL Datebase to trace which file was uploaded
>> >> >> from
>> >> >> which
>> >> >> path and so on.
>> >> >>
>> >> >> Also it should be uses to look up it is nessasery to backup this
>> >> >> file
>> >> >> because it was changed since last time or not.
>> >> >>
>> >> >> All this files should be uploaded to the SERVER in a special folder
>> >> >> where
>> >> >> this files run to a tape backup machine.
>> >> >>
>> >> >> I hope some one can give me some ideas for this.
>> >> >>
>> >> >> Kind Regards
>> >> >> Jens Geier
>> >> >
>> >> > There's a few ways to go about doing this, but I reckon you should
>> >> > do
>> >> > something similar to the following:
>> >> >
>> >> > * schedule a cron job to run as often as you want the backup to
>> >> > be
>> >> > done, and have the cron call a script
>> >> > * the script can either be php and use your own code to create
>> >> > copies of files and check file dates for backup purposes, or
>> >> > use
>> >> > the rsync tool which pretty much does all of this for you
>> >> > automatically
>> >> > * update a database as you need. this can be done either from a
>> >> > php script or directly via mysql on the console
>> >> >
>> >> > If you do use PHP for this, you'll want to code it as a CLI script
>> >> > rather than a web page script. On the whole it won't make much of a
>> >> > difference, but obviously some global variables will change a bit.
>> >> >
>> >> > Thanks,
>> >> > Ash
>> >> > http://www.ashleysheridan.co.uk
>> >> >
>> >
>> > I don't understand what you mean?
>> >
>> > Ps, please try not to top-post.
>> >
>> > Thanks,
>> > Ash
>> > http://www.ashleysheridan.co.uk
>> >
>> Hello Ashley,
>>
>> i try to make a backup from some paths of my local laptop harddrive to a
>> folder on my server. Even if i'm not in the company.
>>
>> If i'm outside (this time i'm in China) i have to copy it through the
>> Internet that is using http or ftp transport protocol.
>>
>> The start of the copy is when the user clicks to a buttom and start the
>> backup process.
>>
>> Kind Regards
>> Jens Geier
>
> The script needs to be set up on your local machine. I don't think HTTP
> will help you much here, as that isn't great for transferring files
> upstream I've found. Googling 'rsync ftp example' brings about over
> 230,000 results, have you actually tried looking?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
No, i have not.

Because i also think that there will not a finish software.

So i think i have to write something by my own.
That is the reason i ask for ideas to do so.

I just read here the following thread:

[PHP] Read directory; store filenames found in mySQL table?

That is something that is running in that direction in try to go.

Kind Regards
Jens Geier



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 14.01.2010 12:45:07 von Ashley Sheridan

--=-YtUAp7Ke3BJUnwqdzZZ0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:

> "Ashley Sheridan" schrieb im Newsbeitrag
> news:1263463572.5952.71.camel@localhost...
> > On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
> >
> >> "Ashley Sheridan" schrieb im Newsbeitrag
> >> news:1263391167.5952.62.camel@localhost...
> >> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
> >> >
> >> >> Hello Ashley,
> >> >>
> >> >> yes rsync is a good idea, but does this also work if there is only a
> >> >> internet conection to may SERVER ?
> >> >>
> >> >> Kind Regards
> >> >> Jens Geier
> >> >>
> >> >> "Ashley Sheridan" schrieb im Newsbeitrag
> >> >> news:1263377397.5952.60.camel@localhost...
> >> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
> >> >> >
> >> >> >> Hello,
> >> >> >>
> >> >> >> my idea is to make a backup of some paths of my laptop via PHP.
> >> >> >>
> >> >> >> I like to use a MySQL Datebase to trace which file was uploaded
> >> >> >> from
> >> >> >> which
> >> >> >> path and so on.
> >> >> >>
> >> >> >> Also it should be uses to look up it is nessasery to backup this
> >> >> >> file
> >> >> >> because it was changed since last time or not.
> >> >> >>
> >> >> >> All this files should be uploaded to the SERVER in a special folder
> >> >> >> where
> >> >> >> this files run to a tape backup machine.
> >> >> >>
> >> >> >> I hope some one can give me some ideas for this.
> >> >> >>
> >> >> >> Kind Regards
> >> >> >> Jens Geier
> >> >> >
> >> >> > There's a few ways to go about doing this, but I reckon you should
> >> >> > do
> >> >> > something similar to the following:
> >> >> >
> >> >> > * schedule a cron job to run as often as you want the backup to
> >> >> > be
> >> >> > done, and have the cron call a script
> >> >> > * the script can either be php and use your own code to create
> >> >> > copies of files and check file dates for backup purposes, or
> >> >> > use
> >> >> > the rsync tool which pretty much does all of this for you
> >> >> > automatically
> >> >> > * update a database as you need. this can be done either from a
> >> >> > php script or directly via mysql on the console
> >> >> >
> >> >> > If you do use PHP for this, you'll want to code it as a CLI script
> >> >> > rather than a web page script. On the whole it won't make much of a
> >> >> > difference, but obviously some global variables will change a bit.
> >> >> >
> >> >> > Thanks,
> >> >> > Ash
> >> >> > http://www.ashleysheridan.co.uk
> >> >> >
> >> >
> >> > I don't understand what you mean?
> >> >
> >> > Ps, please try not to top-post.
> >> >
> >> > Thanks,
> >> > Ash
> >> > http://www.ashleysheridan.co.uk
> >> >
> >> Hello Ashley,
> >>
> >> i try to make a backup from some paths of my local laptop harddrive to a
> >> folder on my server. Even if i'm not in the company.
> >>
> >> If i'm outside (this time i'm in China) i have to copy it through the
> >> Internet that is using http or ftp transport protocol.
> >>
> >> The start of the copy is when the user clicks to a buttom and start the
> >> backup process.
> >>
> >> Kind Regards
> >> Jens Geier
> >
> > The script needs to be set up on your local machine. I don't think HTTP
> > will help you much here, as that isn't great for transferring files
> > upstream I've found. Googling 'rsync ftp example' brings about over
> > 230,000 results, have you actually tried looking?
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> No, i have not.
>
> Because i also think that there will not a finish software.
>
> So i think i have to write something by my own.
> That is the reason i ask for ideas to do so.
>
> I just read here the following thread:
>
> [PHP] Read directory; store filenames found in mySQL table?
>
> That is something that is running in that direction in try to go.
>
> Kind Regards
> Jens Geier
>
>
>


But I've told you that the best tool to do it is rsync. This is a tool,
not a whole large peice of software with a GUI, etc. You use it in
conjunction with other software to achieve what you need. Have you even
looked up at what rsync is?

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-YtUAp7Ke3BJUnwqdzZZ0--

Re: Need Idea to make Backup

am 14.01.2010 15:25:35 von haliphax

--0016e6dab0cd0f91fe047d20a947
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
wrote:

> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>
> > "Ashley Sheridan" schrieb im Newsbeitrag
> > news:1263463572.5952.71.camel@localhost...
> > > On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
> > >
> > >> "Ashley Sheridan" schrieb im Newsbeitrag
> > >> news:1263391167.5952.62.camel@localhost...
> > >> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
> > >> >
> > >> >> Hello Ashley,
> > >> >>
> > >> >> yes rsync is a good idea, but does this also work if there is only
> a
> > >> >> internet conection to may SERVER ?
> > >> >>
> > >> >> Kind Regards
> > >> >> Jens Geier
> > >> >>
> > >> >> "Ashley Sheridan" schrieb im
> Newsbeitrag
> > >> >> news:1263377397.5952.60.camel@localhost...
> > >> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
> > >> >> >
> > >> >> >> Hello,
> > >> >> >>
> > >> >> >> my idea is to make a backup of some paths of my laptop via PHP.
> > >> >> >>
> > >> >> >> I like to use a MySQL Datebase to trace which file was uploaded
> > >> >> >> from
> > >> >> >> which
> > >> >> >> path and so on.
> > >> >> >>
> > >> >> >> Also it should be uses to look up it is nessasery to backup this
> > >> >> >> file
> > >> >> >> because it was changed since last time or not.
> > >> >> >>
> > >> >> >> All this files should be uploaded to the SERVER in a special
> folder
> > >> >> >> where
> > >> >> >> this files run to a tape backup machine.
> > >> >> >>
> > >> >> >> I hope some one can give me some ideas for this.
> > >> >> >>
> > >> >> >> Kind Regards
> > >> >> >> Jens Geier
> > >> >> >
> > >> >> > There's a few ways to go about doing this, but I reckon you
> should
> > >> >> > do
> > >> >> > something similar to the following:
> > >> >> >
> > >> >> > * schedule a cron job to run as often as you want the backup
> to
> > >> >> > be
> > >> >> > done, and have the cron call a script
> > >> >> > * the script can either be php and use your own code to
> create
> > >> >> > copies of files and check file dates for backup purposes,
> or
> > >> >> > use
> > >> >> > the rsync tool which pretty much does all of this for you
> > >> >> > automatically
> > >> >> > * update a database as you need. this can be done either
> from a
> > >> >> > php script or directly via mysql on the console
> > >> >> >
> > >> >> > If you do use PHP for this, you'll want to code it as a CLI
> script
> > >> >> > rather than a web page script. On the whole it won't make much of
> a
> > >> >> > difference, but obviously some global variables will change a
> bit.
> > >> >> >
> > >> >> > Thanks,
> > >> >> > Ash
> > >> >> > http://www.ashleysheridan.co.uk
> > >> >> >
> > >> >
> > >> > I don't understand what you mean?
> > >> >
> > >> > Ps, please try not to top-post.
> > >> >
> > >> > Thanks,
> > >> > Ash
> > >> > http://www.ashleysheridan.co.uk
> > >> >
> > >> Hello Ashley,
> > >>
> > >> i try to make a backup from some paths of my local laptop harddrive to
> a
> > >> folder on my server. Even if i'm not in the company.
> > >>
> > >> If i'm outside (this time i'm in China) i have to copy it through the
> > >> Internet that is using http or ftp transport protocol.
> > >>
> > >> The start of the copy is when the user clicks to a buttom and start
> the
> > >> backup process.
> > >>
> > >> Kind Regards
> > >> Jens Geier
> > >
> > > The script needs to be set up on your local machine. I don't think HTTP
> > > will help you much here, as that isn't great for transferring files
> > > upstream I've found. Googling 'rsync ftp example' brings about over
> > > 230,000 results, have you actually tried looking?
> > >
> > > Thanks,
> > > Ash
> > > http://www.ashleysheridan.co.uk
> > >
> > No, i have not.
> >
> > Because i also think that there will not a finish software.
> >
> > So i think i have to write something by my own.
> > That is the reason i ask for ideas to do so.
> >
> > I just read here the following thread:
> >
> > [PHP] Read directory; store filenames found in mySQL table?
> >
> > That is something that is running in that direction in try to go.
> >
> > Kind Regards
> > Jens Geier
> >
> >
> >
>
>
> But I've told you that the best tool to do it is rsync. This is a tool,
> not a whole large peice of software with a GUI, etc. You use it in
> conjunction with other software to achieve what you need. Have you even
> looked up at what rsync is?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>

I recently used rsync (for the first time, even) in order to transfer an
entire directory structure of several thousand files and folders from one
VPS host to another. It worked like a dream, and the standard output could
be captured to build a report such as the OP was asking for.

Srsly, man -- take Ashley's suggestion and at least check it out. :)

--0016e6dab0cd0f91fe047d20a947--

Re: Need Idea to make Backup

am 14.01.2010 17:05:39 von Robert Cummings

haliphax wrote:
> On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
> wrote:
>
>> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>>
>>> "Ashley Sheridan" schrieb im Newsbeitrag
>>> news:1263463572.5952.71.camel@localhost...
>>>> On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>>>>
>>>>> "Ashley Sheridan" schrieb im Newsbeitrag
>>>>> news:1263391167.5952.62.camel@localhost...
>>>>>> On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>>>>>>
>>>>>>> Hello Ashley,
>>>>>>>
>>>>>>> yes rsync is a good idea, but does this also work if there is only
>> a
>>>>>>> internet conection to may SERVER ?
>>>>>>>
>>>>>>> Kind Regards
>>>>>>> Jens Geier
>>>>>>>
>>>>>>> "Ashley Sheridan" schrieb im
>> Newsbeitrag
>>>>>>> news:1263377397.5952.60.camel@localhost...
>>>>>>>> On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> my idea is to make a backup of some paths of my laptop via PHP.
>>>>>>>>>
>>>>>>>>> I like to use a MySQL Datebase to trace which file was uploaded
>>>>>>>>> from
>>>>>>>>> which
>>>>>>>>> path and so on.
>>>>>>>>>
>>>>>>>>> Also it should be uses to look up it is nessasery to backup this
>>>>>>>>> file
>>>>>>>>> because it was changed since last time or not.
>>>>>>>>>
>>>>>>>>> All this files should be uploaded to the SERVER in a special
>> folder
>>>>>>>>> where
>>>>>>>>> this files run to a tape backup machine.
>>>>>>>>>
>>>>>>>>> I hope some one can give me some ideas for this.
>>>>>>>>>
>>>>>>>>> Kind Regards
>>>>>>>>> Jens Geier
>>>>>>>> There's a few ways to go about doing this, but I reckon you
>> should
>>>>>>>> do
>>>>>>>> something similar to the following:
>>>>>>>>
>>>>>>>> * schedule a cron job to run as often as you want the backup
>> to
>>>>>>>> be
>>>>>>>> done, and have the cron call a script
>>>>>>>> * the script can either be php and use your own code to
>> create
>>>>>>>> copies of files and check file dates for backup purposes,
>> or
>>>>>>>> use
>>>>>>>> the rsync tool which pretty much does all of this for you
>>>>>>>> automatically
>>>>>>>> * update a database as you need. this can be done either
>> from a
>>>>>>>> php script or directly via mysql on the console
>>>>>>>>
>>>>>>>> If you do use PHP for this, you'll want to code it as a CLI
>> script
>>>>>>>> rather than a web page script. On the whole it won't make much of
>> a
>>>>>>>> difference, but obviously some global variables will change a
>> bit.
>>>>>>>> Thanks,
>>>>>>>> Ash
>>>>>>>> http://www.ashleysheridan.co.uk
>>>>>>>>
>>>>>> I don't understand what you mean?
>>>>>>
>>>>>> Ps, please try not to top-post.
>>>>>>
>>>>>> Thanks,
>>>>>> Ash
>>>>>> http://www.ashleysheridan.co.uk
>>>>>>
>>>>> Hello Ashley,
>>>>>
>>>>> i try to make a backup from some paths of my local laptop harddrive to
>> a
>>>>> folder on my server. Even if i'm not in the company.
>>>>>
>>>>> If i'm outside (this time i'm in China) i have to copy it through the
>>>>> Internet that is using http or ftp transport protocol.
>>>>>
>>>>> The start of the copy is when the user clicks to a buttom and start
>> the
>>>>> backup process.
>>>>>
>>>>> Kind Regards
>>>>> Jens Geier
>>>> The script needs to be set up on your local machine. I don't think HTTP
>>>> will help you much here, as that isn't great for transferring files
>>>> upstream I've found. Googling 'rsync ftp example' brings about over
>>>> 230,000 results, have you actually tried looking?
>>>>
>>>> Thanks,
>>>> Ash
>>>> http://www.ashleysheridan.co.uk
>>>>
>>> No, i have not.
>>>
>>> Because i also think that there will not a finish software.
>>>
>>> So i think i have to write something by my own.
>>> That is the reason i ask for ideas to do so.
>>>
>>> I just read here the following thread:
>>>
>>> [PHP] Read directory; store filenames found in mySQL table?
>>>
>>> That is something that is running in that direction in try to go.
>>>
>>> Kind Regards
>>> Jens Geier
>>>
>>>
>>>
>>
>> But I've told you that the best tool to do it is rsync. This is a tool,
>> not a whole large peice of software with a GUI, etc. You use it in
>> conjunction with other software to achieve what you need. Have you even
>> looked up at what rsync is?
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>
> I recently used rsync (for the first time, even) in order to transfer an
> entire directory structure of several thousand files and folders from one
> VPS host to another. It worked like a dream, and the standard output could
> be captured to build a report such as the OP was asking for.
>
> Srsly, man -- take Ashley's suggestion and at least check it out. :)

I've been using rsnapshot (it uses rsync) to do backups of remote server
directories:

http://rsnapshot.org/

Just thought I'd throw it out there :)

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 15.01.2010 03:39:39 von Jens Geier

"haliphax" schrieb im Newsbeitrag
news:952625161001140625x31d03ed5oef8216064da1357c@mail.gmail .com...
> On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
> wrote:
>
>> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>>
>> > "Ashley Sheridan" schrieb im Newsbeitrag
>> > news:1263463572.5952.71.camel@localhost...
>> > > On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>> > >
>> > >> "Ashley Sheridan" schrieb im Newsbeitrag
>> > >> news:1263391167.5952.62.camel@localhost...
>> > >> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>> > >> >
>> > >> >> Hello Ashley,
>> > >> >>
>> > >> >> yes rsync is a good idea, but does this also work if there is
>> > >> >> only
>> a
>> > >> >> internet conection to may SERVER ?
>> > >> >>
>> > >> >> Kind Regards
>> > >> >> Jens Geier
>> > >> >>
>> > >> >> "Ashley Sheridan" schrieb im
>> Newsbeitrag
>> > >> >> news:1263377397.5952.60.camel@localhost...
>> > >> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>> > >> >> >
>> > >> >> >> Hello,
>> > >> >> >>
>> > >> >> >> my idea is to make a backup of some paths of my laptop via
>> > >> >> >> PHP.
>> > >> >> >>
>> > >> >> >> I like to use a MySQL Datebase to trace which file was
>> > >> >> >> uploaded
>> > >> >> >> from
>> > >> >> >> which
>> > >> >> >> path and so on.
>> > >> >> >>
>> > >> >> >> Also it should be uses to look up it is nessasery to backup
>> > >> >> >> this
>> > >> >> >> file
>> > >> >> >> because it was changed since last time or not.
>> > >> >> >>
>> > >> >> >> All this files should be uploaded to the SERVER in a special
>> folder
>> > >> >> >> where
>> > >> >> >> this files run to a tape backup machine.
>> > >> >> >>
>> > >> >> >> I hope some one can give me some ideas for this.
>> > >> >> >>
>> > >> >> >> Kind Regards
>> > >> >> >> Jens Geier
>> > >> >> >
>> > >> >> > There's a few ways to go about doing this, but I reckon you
>> should
>> > >> >> > do
>> > >> >> > something similar to the following:
>> > >> >> >
>> > >> >> > * schedule a cron job to run as often as you want the
>> > >> >> > backup
>> to
>> > >> >> > be
>> > >> >> > done, and have the cron call a script
>> > >> >> > * the script can either be php and use your own code to
>> create
>> > >> >> > copies of files and check file dates for backup
>> > >> >> > purposes,
>> or
>> > >> >> > use
>> > >> >> > the rsync tool which pretty much does all of this for
>> > >> >> > you
>> > >> >> > automatically
>> > >> >> > * update a database as you need. this can be done either
>> from a
>> > >> >> > php script or directly via mysql on the console
>> > >> >> >
>> > >> >> > If you do use PHP for this, you'll want to code it as a CLI
>> script
>> > >> >> > rather than a web page script. On the whole it won't make much
>> > >> >> > of
>> a
>> > >> >> > difference, but obviously some global variables will change a
>> bit.
>> > >> >> >
>> > >> >> > Thanks,
>> > >> >> > Ash
>> > >> >> > http://www.ashleysheridan.co.uk
>> > >> >> >
>> > >> >
>> > >> > I don't understand what you mean?
>> > >> >
>> > >> > Ps, please try not to top-post.
>> > >> >
>> > >> > Thanks,
>> > >> > Ash
>> > >> > http://www.ashleysheridan.co.uk
>> > >> >
>> > >> Hello Ashley,
>> > >>
>> > >> i try to make a backup from some paths of my local laptop harddrive
>> > >> to
>> a
>> > >> folder on my server. Even if i'm not in the company.
>> > >>
>> > >> If i'm outside (this time i'm in China) i have to copy it through
>> > >> the
>> > >> Internet that is using http or ftp transport protocol.
>> > >>
>> > >> The start of the copy is when the user clicks to a buttom and start
>> the
>> > >> backup process.
>> > >>
>> > >> Kind Regards
>> > >> Jens Geier
>> > >
>> > > The script needs to be set up on your local machine. I don't think
>> > > HTTP
>> > > will help you much here, as that isn't great for transferring files
>> > > upstream I've found. Googling 'rsync ftp example' brings about over
>> > > 230,000 results, have you actually tried looking?
>> > >
>> > > Thanks,
>> > > Ash
>> > > http://www.ashleysheridan.co.uk
>> > >
>> > No, i have not.
>> >
>> > Because i also think that there will not a finish software.
>> >
>> > So i think i have to write something by my own.
>> > That is the reason i ask for ideas to do so.
>> >
>> > I just read here the following thread:
>> >
>> > [PHP] Read directory; store filenames found in mySQL table?
>> >
>> > That is something that is running in that direction in try to go.
>> >
>> > Kind Regards
>> > Jens Geier
>> >
>>
>> But I've told you that the best tool to do it is rsync. This is a tool,
>> not a whole large peice of software with a GUI, etc. You use it in
>> conjunction with other software to achieve what you need. Have you even
>> looked up at what rsync is?
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>
> I recently used rsync (for the first time, even) in order to transfer an
> entire directory structure of several thousand files and folders from one
> VPS host to another. It worked like a dream, and the standard output could
> be captured to build a report such as the OP was asking for.
>
> Srsly, man -- take Ashley's suggestion and at least check it out. :)
>
Hello Ashley,
Hello haliphax,

yes i will try it, but please give me some time to do it ...... please .....

Kind Regards
Jens Geier



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 15.01.2010 05:21:17 von Jens Geier

"Ashley Sheridan" schrieb im Newsbeitrag
news:1263469507.5952.75.camel@localhost...
> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>
>> "Ashley Sheridan" schrieb im Newsbeitrag
>> news:1263463572.5952.71.camel@localhost...
>> > On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>> >
>> >> "Ashley Sheridan" schrieb im Newsbeitrag
>> >> news:1263391167.5952.62.camel@localhost...
>> >> > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>> >> >
>> >> >> Hello Ashley,
>> >> >>
>> >> >> yes rsync is a good idea, but does this also work if there is only
>> >> >> a
>> >> >> internet conection to may SERVER ?
>> >> >>
>> >> >> Kind Regards
>> >> >> Jens Geier
>> >> >>
>> >> >> "Ashley Sheridan" schrieb im Newsbeitrag
>> >> >> news:1263377397.5952.60.camel@localhost...
>> >> >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>> >> >> >
>> >> >> >> Hello,
>> >> >> >>
>> >> >> >> my idea is to make a backup of some paths of my laptop via PHP.
>> >> >> >>
>> >> >> >> I like to use a MySQL Datebase to trace which file was uploaded
>> >> >> >> from
>> >> >> >> which
>> >> >> >> path and so on.
>> >> >> >>
>> >> >> >> Also it should be uses to look up it is nessasery to backup this
>> >> >> >> file
>> >> >> >> because it was changed since last time or not.
>> >> >> >>
>> >> >> >> All this files should be uploaded to the SERVER in a special
>> >> >> >> folder
>> >> >> >> where
>> >> >> >> this files run to a tape backup machine.
>> >> >> >>
>> >> >> >> I hope some one can give me some ideas for this.
>> >> >> >>
>> >> >> >> Kind Regards
>> >> >> >> Jens Geier
>> >> >> >
>> >> >> > There's a few ways to go about doing this, but I reckon you
>> >> >> > should
>> >> >> > do
>> >> >> > something similar to the following:
>> >> >> >
>> >> >> > * schedule a cron job to run as often as you want the backup
>> >> >> > to
>> >> >> > be
>> >> >> > done, and have the cron call a script
>> >> >> > * the script can either be php and use your own code to
>> >> >> > create
>> >> >> > copies of files and check file dates for backup purposes,
>> >> >> > or
>> >> >> > use
>> >> >> > the rsync tool which pretty much does all of this for you
>> >> >> > automatically
>> >> >> > * update a database as you need. this can be done either
>> >> >> > from a
>> >> >> > php script or directly via mysql on the console
>> >> >> >
>> >> >> > If you do use PHP for this, you'll want to code it as a CLI
>> >> >> > script
>> >> >> > rather than a web page script. On the whole it won't make much of
>> >> >> > a
>> >> >> > difference, but obviously some global variables will change a
>> >> >> > bit.
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Ash
>> >> >> > http://www.ashleysheridan.co.uk
>> >> >> >
>> >> >
>> >> > I don't understand what you mean?
>> >> >
>> >> > Ps, please try not to top-post.
>> >> >
>> >> > Thanks,
>> >> > Ash
>> >> > http://www.ashleysheridan.co.uk
>> >> >
>> >> Hello Ashley,
>> >>
>> >> i try to make a backup from some paths of my local laptop harddrive to
>> >> a
>> >> folder on my server. Even if i'm not in the company.
>> >>
>> >> If i'm outside (this time i'm in China) i have to copy it through the
>> >> Internet that is using http or ftp transport protocol.
>> >>
>> >> The start of the copy is when the user clicks to a buttom and start
>> >> the
>> >> backup process.
>> >>
>> >> Kind Regards
>> >> Jens Geier
>> >
>> > The script needs to be set up on your local machine. I don't think HTTP
>> > will help you much here, as that isn't great for transferring files
>> > upstream I've found. Googling 'rsync ftp example' brings about over
>> > 230,000 results, have you actually tried looking?
>> >
>> > Thanks,
>> > Ash
>> > http://www.ashleysheridan.co.uk
>> >
>> No, i have not.
>>
>> Because i also think that there will not a finish software.
>>
>> So i think i have to write something by my own.
>> That is the reason i ask for ideas to do so.
>>
>> I just read here the following thread:
>>
>> [PHP] Read directory; store filenames found in mySQL table?
>>
>> That is something that is running in that direction in try to go.
>>
>> Kind Regards
>> Jens Geier
>
> But I've told you that the best tool to do it is rsync. This is a tool,
> not a whole large peice of software with a GUI, etc. You use it in
> conjunction with other software to achieve what you need. Have you even
> looked up at what rsync is?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
Hello Ashley,

rsync looks like the right tool i need to use.

But i need much MORE information about it.

You have an idea where i can find a news group like this for rsync?

Kind Regards
Jens Geier



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need Idea to make Backup

am 15.01.2010 05:29:25 von Jens Geier

"Robert Cummings" schrieb im Newsbeitrag
news:4B4F40D3.3010306@interjinn.com...
> haliphax wrote:
>> On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
>> wrote:
>>
>>> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>>>
>>>> "Ashley Sheridan" schrieb im Newsbeitrag
>>>> news:1263463572.5952.71.camel@localhost...
>>>>> On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>>>>>
>>>>>> "Ashley Sheridan" schrieb im Newsbeitrag
>>>>>> news:1263391167.5952.62.camel@localhost...
>>>>>>> On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote:
>>>>>>>
>>>>>>>> Hello Ashley,
>>>>>>>>
>>>>>>>> yes rsync is a good idea, but does this also work if there is only
>>> a
>>>>>>>> internet conection to may SERVER ?
>>>>>>>>
>>>>>>>> Kind Regards
>>>>>>>> Jens Geier
>>>>>>>>
>>>>>>>> "Ashley Sheridan" schrieb im
>>> Newsbeitrag
>>>>>>>> news:1263377397.5952.60.camel@localhost...
>>>>>>>>> On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> my idea is to make a backup of some paths of my laptop via PHP.
>>>>>>>>>>
>>>>>>>>>> I like to use a MySQL Datebase to trace which file was uploaded
>>>>>>>>>> from
>>>>>>>>>> which
>>>>>>>>>> path and so on.
>>>>>>>>>>
>>>>>>>>>> Also it should be uses to look up it is nessasery to backup this
>>>>>>>>>> file
>>>>>>>>>> because it was changed since last time or not.
>>>>>>>>>>
>>>>>>>>>> All this files should be uploaded to the SERVER in a special
>>> folder
>>>>>>>>>> where
>>>>>>>>>> this files run to a tape backup machine.
>>>>>>>>>>
>>>>>>>>>> I hope some one can give me some ideas for this.
>>>>>>>>>>
>>>>>>>>>> Kind Regards
>>>>>>>>>> Jens Geier
>>>>>>>>> There's a few ways to go about doing this, but I reckon you
>>> should
>>>>>>>>> do
>>>>>>>>> something similar to the following:
>>>>>>>>>
>>>>>>>>> * schedule a cron job to run as often as you want the backup
>>> to
>>>>>>>>> be
>>>>>>>>> done, and have the cron call a script
>>>>>>>>> * the script can either be php and use your own code to
>>> create
>>>>>>>>> copies of files and check file dates for backup purposes,
>>> or
>>>>>>>>> use
>>>>>>>>> the rsync tool which pretty much does all of this for you
>>>>>>>>> automatically
>>>>>>>>> * update a database as you need. this can be done either
>>> from a
>>>>>>>>> php script or directly via mysql on the console
>>>>>>>>>
>>>>>>>>> If you do use PHP for this, you'll want to code it as a CLI
>>> script
>>>>>>>>> rather than a web page script. On the whole it won't make much of
>>> a
>>>>>>>>> difference, but obviously some global variables will change a
>>> bit.
>>>>>>>>> Thanks,
>>>>>>>>> Ash
>>>>>>>>> http://www.ashleysheridan.co.uk
>>>>>>>>>
>>>>>>> I don't understand what you mean?
>>>>>>>
>>>>>>> Ps, please try not to top-post.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ash
>>>>>>> http://www.ashleysheridan.co.uk
>>>>>>>
>>>>>> Hello Ashley,
>>>>>>
>>>>>> i try to make a backup from some paths of my local laptop harddrive
>>>>>> to
>>> a
>>>>>> folder on my server. Even if i'm not in the company.
>>>>>>
>>>>>> If i'm outside (this time i'm in China) i have to copy it through the
>>>>>> Internet that is using http or ftp transport protocol.
>>>>>>
>>>>>> The start of the copy is when the user clicks to a buttom and start
>>> the
>>>>>> backup process.
>>>>>>
>>>>>> Kind Regards
>>>>>> Jens Geier
>>>>> The script needs to be set up on your local machine. I don't think
>>>>> HTTP
>>>>> will help you much here, as that isn't great for transferring files
>>>>> upstream I've found. Googling 'rsync ftp example' brings about over
>>>>> 230,000 results, have you actually tried looking?
>>>>>
>>>>> Thanks,
>>>>> Ash
>>>>> http://www.ashleysheridan.co.uk
>>>>>
>>>> No, i have not.
>>>>
>>>> Because i also think that there will not a finish software.
>>>>
>>>> So i think i have to write something by my own.
>>>> That is the reason i ask for ideas to do so.
>>>>
>>>> I just read here the following thread:
>>>>
>>>> [PHP] Read directory; store filenames found in mySQL table?
>>>>
>>>> That is something that is running in that direction in try to go.
>>>>
>>>> Kind Regards
>>>> Jens Geier
>>>>
>>>>
>>>>
>>>
>>> But I've told you that the best tool to do it is rsync. This is a tool,
>>> not a whole large peice of software with a GUI, etc. You use it in
>>> conjunction with other software to achieve what you need. Have you even
>>> looked up at what rsync is?
>>>
>>> Thanks,
>>> Ash
>>> http://www.ashleysheridan.co.uk
>>>
>>
>> I recently used rsync (for the first time, even) in order to transfer an
>> entire directory structure of several thousand files and folders from one
>> VPS host to another. It worked like a dream, and the standard output
>> could
>> be captured to build a report such as the OP was asking for.
>>
>> Srsly, man -- take Ashley's suggestion and at least check it out. :)
>
> I've been using rsnapshot (it uses rsync) to do backups of remote server
> directories:
>
> http://rsnapshot.org/
>
> Just thought I'd throw it out there :)
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP

Hello Rob,

my source of the Backup should be my Laptop here in China and running MS
Windows XP.
The Destination is my SERVER in Germany.

I find that rsnapshot does not run on windows ....

Kind Regards
Jens Geier



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php