• Hi One and All,

    in my installation of WordPress (on Debian 8 and WP 4.2.2), the path to the uploads directory is /usr/share/wordpress/wp-content/uploads.

    uploads, though, is not a physical directory, but it’s a symbolic link into /var/lib/wordpress/wp-content/uploads.

    This is good because it takes the necessity away from the /usr/ directory to have a writeable-to subdirectory.

    This actually works quite nicely, with one exception: Revisr tells the user that it is backing up the uploads directory, while in reality IT DOES NOT!!

    One can see the evidence by using e.g. github to peek into what was saved in the git repository. ‘uploads’ is there, but it’s empty, and stays empty.

    Well this is dangerous, to say the least. Dear Revisr developers, can you please amend this ASAP!

    Thank you,
    Michael

    https://wordpress.org/plugins/revisr/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Expanded Fronts

    (@expandedfronts)

    Hi Michael,

    Thanks for reporting this. It looks like this is actually the default behavior of Git (regarding symlinks), instead of a bug with the Revisr plugin.

    However I’m leaving this open for now while we look into some possible solutions and update docs as necessary.

    In the meantime, the easiest solution would likely be to use the normal WordPress structure (without the symlinks to “wp-content/uploads”.

    Thread Starter luwadmin

    (@luwadmin)

    Well, the ‘normal’ WP structure (under Debian) IS to use the /usr/shared/wordpress directory for what has to be protected (out of the web user’s reach) and can stay read-only, while keeping everything else in either the /var/lib/wordpress branch, or in /etc/wordpress, respectively. This way, everything is exactly where it belongs, which is why administrators like me love Debian so much. 🙂

    You are right though that it is GIT default behaviour to not follow symlinks. Still I think that you (the Revisr engineers) ought to keep your promise that Revisr really backs up what it claims to back up.

    For the technical user, who has a good basic knowledge of Linux, I have a workaround suggestion as follows.

    If you can SSH to your server (ie if you have shell access), logon to your server as root. Navigate to the directoy which the ‘uploads’ directory is a child of, like this:

    cd /usr/share/wordpress/wp-content

    First of all, do a

    ls -la

    ..to verify that ‘uploads’ is really a symlink, rather than a ‘real’ directory (if it’s a real directory, you need not do a thing and please skip the rest).

    Next, in order to not interfere with wordpress as it is, create a new subdirectory, such as…

    mkdir uploads-mounted

    Finally, mount the ‘true’ uploads directory (ie where the uploaded files really are, for me this is /var/lib/wordpress/wp-content/uploads/) into that new directory you have just created:

    mount --bind /var/lib/wordpress/wp-content/uploads/ uploads-mounted/

    Done. From now on, Revisr will take care of everything in the uploads directory, most importantly your wordpress database.

    Remember that this is only a cludge, though. The mount command, as handy as it comes in here, has its drawbacks.

    Hope this helps some users out, for the time being.

    Michael 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘'Uploads' directory not backed up’ is closed to new replies.