Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Backup Symlinked Data

Backup Symlinked Data

Scheduled Pinned Locked Moved Solved Support
3 Posts 2 Posters 868 Views 2 Watching
  • 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.
  • tobruT Offline
    tobruT Offline
    tobru
    wrote on last edited by
    #1

    When moving data to an external location like described in the docs under Moving a single app's data directory to another location the symlinked location is not part of the backup. How can I change the backup configuration to also include this data?

    total 242952
    drwxr-xr-x 4 yellowtent yellowtent      4096 Oct 19 20:53 ./
    drwxr-xr-x 6 root       root            4096 Oct 21 12:53 ../
    -rw-r--r-- 1 yellowtent yellowtent      2814 Oct 23 10:01 config.json
    lrwxrwxrwx 1 root       root              19 Oct 19 20:53 data -> /srv/nextcloud-data/
    drwxrwx--- 9 www-data   www-data        4096 Oct 16 20:05 data_orig/
    -rw-r--r-- 1 root       root             529 Oct 23 10:01 fsmetadata.json
    -rw-r--r-- 1 yellowtent yellowtent 248753695 Oct 23 10:01 postgresqldump
    drwxr-xr-x 2 lxd        lxd             4096 Oct 23 13:47 redis/
    root@my:/home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341# 
    

    The folder data is missing in the backup, whereas data_orig is there.

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #2

      @tobru You should make the /home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341 a symlink instead.

      So something like:

      1. stop the containers
      2. move the data directory. in the example below, I am assuming /srv/nextcloud does not exist. If it already exists, remove it (otherwise the mv will move it as a subdirectory).
      mv /home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341 /srv/nextcloud
      ln -s /srv/nextcloud /home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341
      
      1. start the containers
      1 Reply Last reply
      0
      • tobruT Offline
        tobruT Offline
        tobru
        wrote on last edited by
        #3

        Thanks @girish, that did the trick and lead straight into Backup Improvements: Restic as Backend.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search