Results 1 to 1 of 1
I have an old hosting company and a new hosting company. Neither of which give me any terminal access. All i have is the ability to run scripts on each ...
- 08-04-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 1
Copying to/from shared hosts
I have an old hosting company and a new hosting company. Neither of which give me any terminal access. All i have is the ability to run scripts on each machine via cron. What i want to do is copy complete directory structures from one host to the other...with the same permissions, same directory structures, same files. Since i have to run commands via cron...i cannot make them interactive.
I have tried every example combination of commands i could find on the internet to cause a recursive copy to happen...for one reason or another none of them would work correctly...either because i could not give the password info without being interactive....or because it would copy more or less files than i wanted. I thought this would be easy...but i see people all over the internet trying to get the same "simple?" problem solved...most because they are on shared hosting and cannot do su commands or have telnet access.
Can anyone supply the answer? Here are the givens:
1. I have access to ftp, scp, cp, wget, rsync.
2. I can run scripts via cron but cannot be interactive obviously
3. I have a userid
assword on both hosts for ftp
4. Directory and sub directories and files will exist on one host...I want to copy structure, files, permissions, exactly to the other host
5. I dont want to ftp to a pc...and then upload....to the other because of bandwidth problems
6. I have htaccess files in both folders...but they can be removed if necessary
Thanks folks.... I am getting exasperated and i have so little hair left


Reply With Quote