this post was submitted on 18 Aug 2023
63 points (95.7% liked)

Linux

47237 readers
3343 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I am currently using EndeavourOS for my laptop. Is there a backup solution that is easy to use, and can be run from the EndeavourOS install media without internet? (RSync is included, but no other backup tools are included, to my knowledge.) I don't want to use another ISO due to space constraints on my USB.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (1 children)

I wrote a Bash script that uses rsync to copy data elsewhere.

It gets launched by a systemd timer, but cron would also work. At first it creates a btrfs snapshot of source, for consistency's sake.

Then it copies stuff. It's incremental, ie. unchanged files get hardlinked, not copied (-link-dest against the latest symlink) into date-specific directories that present the full view of the filesystem.

Finally, it cleans up the source snapshot and rewrites the latest symlink to point to the freshly made copy, if successful.

I could share my script, if there's interest, tho it might look a bit messy. Oh, and these rdiff-whatchamacallits probably do the same thing in a more professional manner. I wrote mine to learn rsync.

[–] [email protected] 2 points 1 year ago (1 children)

Sounds like a well thought out solution, but we need proper programs which can handle backups, like some mentioned in this thread.

[–] [email protected] 1 points 1 year ago (1 children)

Oh, I totally agree my solution is not "proper" - it's a homebrewn solution, full of duct tape and shoestrings. That said, it does everything I need to do. Which features of "proper programs" would you be missing? Perhaps I could add them for my own use.

[–] [email protected] 2 points 1 year ago

Its not about features, its about "duct tape scripts" are rarely a solution for anybody else than the author, imo. Borgbackup seems like the proper suggestion here for the OP.