Epic Data Corruption In Need Of Help - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Epic Data Corruption In Need Of Help

  1. #11
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,363
    Hi,

    backupping on a CIFS share, and on any case-insensitive filesystem, is not supported since version 1.1.0 due to a change in the way ZeXtras stores its data.

    We're preparing a script that will fix your issue, I'll post it as soon as our tests on it are completed.

    Best regards,
    Cine

  2. #12
    Member
    Join Date
    May 2012
    Posts
    46
    Hello,

    Thank you so much for your support. Eventually I've changed the backup location to a local hard drive, and I've created a cron script that will export the backup, tar it, and move it to the nas device. As for the lost emails I've restored backups from all pcs and overwritten all the data on the imap folders thus fixing the missing emails and reducing the amount of lost emails. I am highly interested in that script and in knowing that zextras backup solution is to be trusted, thus I've decided to resume my trial of zxextras backup solution for this month by creating a virtual environment to perform more complex tests on the external restore procedure to see if it matches my needs.

    Thank you.

  3. #13
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,363
    Hello iamcypher,

    this is the script we wrote based on the informations provided before your last post:
    Code:
    #!/usr/bin/env python
    
    import os
    import os.path
    import shutil
    
    
    def get_parent_path(path):
        return os.path.dirname(path)
    
    
    def check_path(args, dir, names):
        for name in names:
            current_path = os.path.join(dir, name)
    
    
            if os.path.isdir(current_path):
               continue
    
    
            if name[0:2] != dir[2:4]:
                print name + " is in the wrong directory: " + dir
                correct_dir = os.path.join(get_parent_path(dir), name[0:2])
                correct_path = os.path.join(correct_dir, name)
    
    
                if not os.path.exists(correct_dir):
                    os.mkdir(correct_dir)
    
    
                print "Moving " + current_path + " to " + correct_path
                shutil.move(current_path, correct_path)
    
    
    
    
    def usage(msg):
        print msg + "\nUsage:\n\tcheckBackupPaths.py [path of the items directory]"
    
    
    def main(args):
    
    
    
    
        if len(args) == 1:
           usage("No path specified!")
           exit(-1)
        else:
           path = args[1]
    
    
        if not os.path.isdir(path):
            usage("The specified path is not a valid directory")
            exit(-2)
    
    
        os.chdir(path)
    
    
        print "*** Start checking backup paths on " + path + " ***"
        os.path.walk(".", check_path, None)
        print "*** Check finished ***"
    
    
    if __name__ == "__main__":
        main(os.sys.argv)
    please run it as root, the only argument needed is the path to the "items" folder (in this case /restore/nas/items/) and it will move any misplaced file to the appropriate path.

    After reading your last post, anyway, I strongly suggest against preforming a new import to complete the restore process, as the coherency between the backupped data and the actual data on the server has been broken restoring data from other sources.

    I'm really glad you want to continue testing ZeXtras Suite, but please remember that ZeXtras Suite relies on the Real Time Scanner to perform a real time backup of the system.

    Have a nice weekend,
    Cine.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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