• Ughm… Was looking for like 1 hour now in BackupRestore.php figuring the way how to exclude one folder from backupping process.
    Anyone have any idea?
    like $tar = new Archive_Tar($file_name, "true", exclude_folder='excluded_folder');
    usually I would just
    tar --exclude=excluded_folder --exclude=*.pdf blablabla... but since I got no access to shell on that host... >_<

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    You could do it the manual way, assuming you have access to phpmyadmin.
    https://tamba2.org.uk/wordpress/backup/

    Thread Starter MaxT

    (@maxt)

    wasn’t talking about backupping mysql db… but *folders*
    ahem

    Moderator James Huff

    (@macmanx)

    You could do it the manual way, assuming you have access to FTP and can download folders and files.

    Thread Starter MaxT

    (@maxt)

    Yes I could, thank you ?? But I prefer to compress the site and then DL 1 file which is smaller and takes 100 times less time to download instead of downloading hundreds of small files…

    Thread Starter MaxT

    (@maxt)

    Hmm… thnx for the snippet, tho’ I got no luck with it (getting blank page with no errors and no backup file were created)
    ?? I guess my host limits usage of exec cmd ??

    Thread Starter MaxT

    (@maxt)

    Tried with chmod 777 and looked into script once again to be sure about destination, still no luck ??
    1) MySQL db down over there, will look for similar scripts at Google
    2) Prolly, but… There is allready one script that works with WP, why reinvent the wheel? And I’m 100% sure that it can be set up to exclude some folders… There are even funcs for that in tar.php… I just can’t figure out (yet) how to use’em… ??
    Thanks for your time tho’ ??
    Hrmpf…

    Thread Starter MaxT

    (@maxt)

    k, it’s not possible… forget it…
    you could do it one way : make archive of all 4 folders, then index it (make a list of all files in the archive (and I got +2000 I think and each file will generate about 7-8 lines of info)), then find files you don’t need (by their ID from index list), and then run another script which will delete those files with needed IDs from the archive…
    Usefull? Not at all… Cause I can’t create the first file at all (execution time > 30 secs)… And gathering IDs for about 2000 files from that Index list… Eh… no way dude…
    Consider this thread closed

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Excluding folder from backup // BackupRestore.php’ is closed to new replies.