I want to create a backup of my Linux system, including user files, from the command line. I tried using Timeshift but it doesn’t have a CLI argument to include a folder.

I found a guide on dev.to that explains how to use Timeshift from the command line, but it doesn’t mention how to include user files. According to ItsFOSS, Timeshift is designed to protect system files and settings, not user data, so user home directories are excluded by default.

I came across a list of backup programs for Linux on Slant, and BackInTime appears to be the best.

Has anyone used BackInTime to backup the whole system including user files? Are there any other tools that you would recommend?

Edit: would also be nice if it had similar features to Timeshift, like incremental snapshots, weekly snapshots, list, restore and delete snapshots, etc.

  • .....@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    for snapshot depending your filesystem, the function included/built-in, to manage it, can be better.

    I agree with dan’s comment,
    Use rsync first to sync your home, or wallpapers,
    You will figure out, how it work, with the good options,

    And then you will do an script or crontab for you personnally, depending what you want to save, how, and how many times.

    Rsync, can restore files, delete files. Basycally its an file manager XD
    Like for /etc/ you maybe want to replace file and do an copy of it before if they have the same name. But not for your picture’s folder.

    Learn, and read doc of rsync, use it, on low importance files, and you will manage regarding your needs :).

    OFC you can ask for specific help,
    I just dont want to tell you how to do something if im not sure its good regardings your needs.

    Edit : Check “tar” too maybe,