Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    Regular Coder
    Join Date
    Sep 2002
    Posts
    429
    Thanks
    0
    Thanked 20 Times in 20 Posts
    Do you think this would work?
    freecode.com/projects/grsync
    NO Limits!! www.dhcreationstation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com

  2. #17
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    "rsync -avp fromhere tohere"
    seriously, its not rocket science because if it was I would not be able to do it, you dont have to set up public/private key authentication if you donrt want to but its much safer than having a password lying around in your cron files.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  3. #18
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    Quote Originally Posted by c1lonewolf View Post
    Do you think this would work?
    freecode.com/projects/grsync
    you need a GUI for that, e.g. X or windows , I am assuming your webserver is a linux box with command/web interface only ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  4. #19
    New Coder
    Join Date
    Jan 2011
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    FirePages - What is wrong with the code I posted in the first post of this thread, how come it won't work ? I have CronJobs setup, but it won't backup the entire web site, for now that I my main focus, although the flexibility to backup specific directories would be good

  5. #20
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    does the script work if you call it directly, and if not what error messages do you get , also have you confirmed that you can log into the FTP site usng the details provided ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  6. #21
    Regular Coder
    Join Date
    Sep 2002
    Posts
    429
    Thanks
    0
    Thanked 20 Times in 20 Posts
    "rsync -avp fromhere tohere"

    so then I can:
    rsync -avp /home/mysite/public_html /home/mysite/public_html/backups/

    so what's the file extension, or is rsync an ftp only option.
    NO Limits!! www.dhcreationstation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com

  7. #22
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    if you...
    rsync -avp /home/mysite/public_html /home/mysite/public_html/backups

    then in /home/mysite/public_html/backups you will see a folder public_html containing an exact copy of everything in /home/mysite/public_html

    you can copy individual files if you wish rsync -avp /home/mybackup.zip /home/backups
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  8. #23
    Regular Coder
    Join Date
    Sep 2002
    Posts
    429
    Thanks
    0
    Thanked 20 Times in 20 Posts
    so this is the jist of it:
    zip - is used to backup small to medium sites
    tar - is used to backup medium to semi-large sites
    (and tar varioations like .tar.gz)
    rsync - is used to backup file system to a cloud or other server.

    that it?

    edited:
    "you can copy individual files if you wish rsync -avp /home/mybackup.zip /home/backups"
    but if you save the home dir as mybackup.zip will it not still cause the same internal server error problem...
    will have to test and see.
    Last edited by c1lonewolf; 09-13-2013 at 06:49 AM.
    NO Limits!! www.dhcreationstation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com

  9. #24
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    zip/tar/tar.gz etc are simply compressed files/folders, they are used in backups simply to save space but for no other reason.

    rsync is just a program to copy stuff from one place to another, as is 'cp/cp -R' on *nix and 'copy/xcopy' on 'windows' it just has more functionality such as the ability to copy to remote servers , incremental backups, exclusions etc.

    you are correct if your zip process is causing high server load then rsync wont change that
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  10. #25
    New Coder
    Join Date
    Jan 2011
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by firepages View Post
    does the script work if you call it directly, and if not what error messages do you get , also have you confirmed that you can log into the FTP site usng the details provided ?
    The script is working, I've placed a message in the script "I work script2". Each and every night CronJobs executes the script, and I get an email with the message "I work script2" when I go to the directory where the server is suppose to be backed up, it is empty.

    In that sense the script is not doing it's main purpose which is, not to send me a message that I programmed in the script, rather to backup my entire web server.

  11. #26
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    ok but does the script work if you call it directly ??

    that your cron job gets called is one thing, its not the same as the script itself working ... you should get the script working via a direct call where you can see any (PHP generated) error messages, fix those THEN run as cron and see if there are any cron related errors...

    if you have access to server logs check /var/log/syslog & /var/log/cron or cron may be in /var/log/daemon somewhere, also turn on error reporting in your php.ini and check its error log (where that will be will depend on php.ini setting)
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  12. #27
    New Coder
    Join Date
    Jan 2011
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't have access to server logs and I can't enable error reporting in php.ini. Anywhere else you can recommend for me to look that may have information that hopefully is of some help ?

    How do I call the script, directly ?

  13. #28
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,093
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Quote Originally Posted by CardinalQuest View Post
    How do I call the script, directly ?
    Not that old chestnut again.

    You know full well how to type a url into your browser and hit enter. If you really don't think you can do that then you're not suited to web design.

    @firepages can this topic - seriously.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!

  14. #29
    New Coder
    Join Date
    Jan 2011
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tangoforce View Post
    Not that old chestnut again.

    You know full well how to type a url into your browser and hit enter. If you really don't think you can do that then you're not suited to web design.

    @firepages can this topic - seriously.
    I recall explaining that it didn't work a while ago, somewhere. The script is in my root, firefox fires a The page isn't redirecting properly error. The reason why I ask the question, strictly the terminology you used.

  15. #30
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,093
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Quote Originally Posted by CardinalQuest View Post
    The reason why I ask the question, strictly the terminology you used.
    I used no terminology in this thread chris until my first post. Don't blame me for your issues.

    You know full well how to 'call' a url, everyone does. IF your script is above your public_html then create another file and use the include function to include it.

    You know how to do that though don't you, you just prefer to get others to fix everything for you to save you the effort.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!


 
Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •