Re: Need Idea to make Backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"haliphax" <haliphax@xxxxxxxxx> schrieb im Newsbeitrag 
news:952625161001140625x31d03ed5oef8216064da1357c@xxxxxxxxxxxxxxxxx
> On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan
> <ash@xxxxxxxxxxxxxxxxxxxx>wrote:
>
>> On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote:
>>
>> > "Ashley Sheridan" <ash@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
>> > news:1263463572.5952.71.camel@xxxxxxxxxxxx
>> > > On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote:
>> > >
>> > >> "Ashley Sheridan" <ash@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
>> > >> news:1263391167.5952.62.camel@xxxxxxxxxxxx
>> > >> > 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" <ash@xxxxxxxxxxxxxxxxxxxx> schrieb im
>> Newsbeitrag
>> > >> >> news:1263377397.5952.60.camel@xxxxxxxxxxxx
>> > >> >> > 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:
>> >
>> >  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux