1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Data / Internal Data backups

Discussion in 'XenForo Questions and Support' started by Marc, Jan 22, 2012.

  1. Marc

    Marc Well-Known Member

    Hi Guys,
    Just want to check I am correct it what I am thinking. Im sorting out some backups on my site. At present I download to my PC but Im automating this task to somewhere on another server.

    So a few questions:

    1. Other than my database, the only other thing that would change on my site are the data & internal data directories. I am right it saying this?
    2. The internal and data directories, if I backup from the latest numbered folder I already have on my backup server (including that folder in case changes were made) and every number after this, I would have all the files backed up? ie. no need to back up numbers prior to this again as I already have these. Also assuming this to be correct but want to make sure.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Correct, that's where avatars and attachments are stored.

    Not necessarily.
    Avatars are related to the user ID, which is linked to the directory name, so any updated avatars can be changed in any directory. User ID 1 - 999 are in folder 0, 1,000 - 1,999 in folder 1 and so on.

    Files can't be updated but they can be deleted.
    So the only consequence will be having files in the directory which are no longer present on the forum.
    Marc likes this.
  3. Marc

    Marc Well-Known Member

    excellent cheers Brogan. Avatars are least of my worries, can transfer nightly if need be. Just dont fancy transferring attachments each night as the folder is *huge* lol
  4. Mike

    Mike XenForo Developer Staff Member

    If you're doing a transfer to another server, I'd look at setting up rsync to do it. It will only transfer changed files.
    Marc likes this.
  5. Marc

    Marc Well-Known Member

    rsync .. never heard of that ... Google time :) .. Cheers Mike
  6. Marc

    Marc Well-Known Member

    Ooooo tis shiny :)
  7. digitalpoint

    digitalpoint Well-Known Member

    You may want to check out csync2 as well, although maybe a little overkill for just a backup that is always from server A to server B. It *is* a little faster than rsync for the underlying transfer, but also has a ton of stuff you wouldn't need (it's primarily designed for keeping files on clusters in sync when files can originate on any of the servers).

    Now if you want to get really fancy, and have "instant" backups... i.e. the instant the file shows up on server A, it's automatically copied to server B, you could use csync2 as the transfer mechanism along with lsyncd as the triggering mechanism (you can also use lsyncd with rsync as the transferring mechanism as well if you want).

    Some good nerdy fun if you are bored. :)

    Walter and Mike like this.
  8. Marc

    Marc Well-Known Member

Share This Page