City of Arabel
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Restoring stuff from the server vault

    Scheduled Pinned Locked Moved Server Management
    4 Posts 2 Posters 61 Views
    Loading More Posts
    • 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.
    • DoctorDethD
      DoctorDeth
      last edited by DoctorDeth

      1. Log in to the server as "arabel".

      2. Create a temporary directory:
        mkdir /tmp/restore
        (Directory already exists errors are OK.)

      3. Mount the backup on the newly-created directory.
        borg mount $BORG_REPO /tmp/restore
        cd /tmp/restore

      At this point, that directory contains a bunch of folders that look like:

      ...
      drwxr-xr-x 1 arabel arabel 0 Feb 27 20:00 arabel-2022-02-27T20:00:02
      drwxr-xr-x 1 arabel arabel 0 Feb 28 00:00 arabel-2022-02-28T00:00:02
      drwxr-xr-x 1 arabel arabel 0 Feb 28 04:00 arabel-2022-02-28T04:00:02
      drwxr-xr-x 1 arabel arabel 0 Feb 28 08:00 arabel-2022-02-28T08:00:01
      drwxr-xr-x 1 arabel arabel 0 Feb 28 12:00 arabel-2022-02-28T12:00:01
      drwxr-xr-x 1 arabel arabel 0 Feb 28 16:00 arabel-2022-02-28T16:00:02
      drwxr-xr-x 1 arabel arabel 0 Feb 28 20:00 arabel-2022-02-28T20:00:01
      drwxr-xr-x 1 arabel arabel 0 Mar  1 00:00 arabel-2022-03-01T00:00:02
      ...
      

      Pick a timestamp that looks good to you and cd into that directory. From there, it looks like the servervault tree. Find your file, copy it out to where it needs to go.

      Important!!

      Unmount the restore directory when you are done or backups will fail in the future until you do:

      borg umount /tmp/restore

      Enjoy!

      In theory, practice and theory are the same. In practice, however, they are not.

      ZoolZ 1 Reply Last reply Reply Quote
      • ZoolZ
        Zool @DoctorDeth
        last edited by

        @doctordeth said in Restoring stuff from the server vault:

        From there, it looks like the servervault tree. Find your file, copy it out to where it needs to go.

        Could you do this part via filezilla?

        > !!!MOLES for the MOLE GOD!!!

        ZoolZ 1 Reply Last reply Reply Quote
        • ZoolZ
          Zool @Zool
          last edited by

          @zool Yep, you could

          > !!!MOLES for the MOLE GOD!!!

          DoctorDethD 1 Reply Last reply Reply Quote
          • DoctorDethD
            DoctorDeth @Zool
            last edited by

            @zool Yes, you can do the restore part from FileZilla, but the initial "mount" and "unmount" commands must be done at the command line.

            In theory, practice and theory are the same. In practice, however, they are not.

            1 Reply Last reply Reply Quote
            • folkloreF folklore moved this topic from DM Instructions & Requests on
            • 1 / 1
            • First post
              Last post