• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Backup script strange behaviour!

    Scheduled Pinned Locked Moved
    General
    2
    3
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      doughobbs
      last edited by

      Hey folks…

      I’m not sure how many folks are using the FOG backup script? I have it setup to backup the following:-

      /images
      /snapins
      /reports
      /tftpboot
      /utils
      /fog-setup (I keep my installers here incase of system boom and no web!)
      /var/www/index.html

      The above locations are backed up to a network drive (which we back up other massive data files to also without problem), the network drive is mounted in the main FOG server users home drive.

      The problem I’m having is when I run the script it runs through the process of backing up the images folder then at around 89% through the images folder it deletes everyting in the backup location and leaves just a couple of images.

      If I REM out the images section I ge the same problem with the snapins folder.
      If I REM out the snapins and the images folders then the script completes as expected.

      Is there a maximum file/data/buffer size limitation the shell script can handle which might make is remove everything it’s put in the backup location?

      1 Reply Last reply Reply Quote 0
      • D
        doughobbs
        last edited by

        well - I’ve found it’s not the script/code as I get the same result using:-

        “cp * -rbuv”
        “cp * -au”

        … from a terminal so it looks like its something with the cp command?

        If anyone has a clue then please shout up as I’m at a loss!o_O

        1 Reply Last reply Reply Quote 0
        • K
          Kevin
          last edited by

          I posted this “patch” for Ubuntu servers a while back and i’ve used it multiple times without any problems. Maybe you want to check the code in there to see if something isn’t quite right in the code that you have.

          [url]http://sourceforge.net/tracker/?func=detail&aid=3449766&group_id=201099&atid=976201[/url]

          "The quieter you become, the more you are able to hear"

          New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          240

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project