20
submitted 11 months ago by Pantherina@feddit.de to c/linux@lemmy.ml

I am currently using Freefilesync Flatpak, but that app is not great at all. I dont want weird archives or anything, just to copy my filesystem to another drive.

Also, I want to mirror with the possibility to exclude folders. Mirroring means that the backup should be updated to look like my disk, including deletion of files.

I tested many tools in the Past and for some reason came back to FFS.

Best would be to have automatic backups once I plug in and decrypt the backup drive.

Thanks!

top 23 comments
sorted by: hot top controversial new old
[-] Quazatron@lemmy.world 11 points 11 months ago

If you want backups done right, use BorgBackup. You can use Vorta as a GUI for Borg.

[-] PlexSheep@feddit.de 1 points 11 months ago

I didn't know it had a GUI, very nice.

[-] atzanteol@sh.itjust.works 7 points 11 months ago* (last edited 11 months ago)

rsync is ubiquitous and the standard for this type of job.

rsync -rav --delete --progress --exclude=ignore_dir source-dir user@host:remote_dir

SSH is used to connect. Ownership, symlinks, etc. are preserved. Add more "excludes" to filter out more directories. Do your first run without " delete" to make sure things are going where you want.

If you want "backups" I would suggest something more sophisticated. But for just cloning this is the way.

You could try Grsync. It is a GUI for rsync ☺️

[-] moreeni@lemm.ee 8 points 11 months ago

Or just use rsync itself. Arch wiki provides some command examples

[-] Pantherina@feddit.de 2 points 11 months ago

Okay true, just found out the parameters and it looks pretty nice and easy. Aaand its preinstalled on Fedora Kinoite, so nothing extra even. And no flatpak, which is annoying for these tasks

[-] danielquinn@lemmy.ca 2 points 11 months ago

Have a look at --link-dest. You can use rsync to effectively setup your own time machine. Here's the script I've used in the past: https://gitlab.com/danielquinn/handy-scripts/-/blob/master/backup

[-] Frederic@beehaw.org 2 points 11 months ago

yup, good old "rsync -av --delete source destination"

[-] Hexagon@feddit.it 7 points 11 months ago

I use syncthing to mirror to a raspberry pi NAS. Set it and forget it

[-] Pantherina@feddit.de 1 points 11 months ago

I actually didnt say local. Use syncthing already, its just great. Two phones and two laptops, no problems really.

But this is for local backups

[-] Atemu@lemmy.ml 3 points 11 months ago* (last edited 11 months ago)

I dont want weird archives or anything, just to copy my filesystem to another drive.

For proper backups, you do want "weird archives" with integrity checks, versioning, deduplication and compression. Regular files cannot offer that (at least not efficiently so).

[-] Pantherina@feddit.de 1 points 11 months ago

Ok thanks. Fedora already uses BTRFS, would that work?

[-] Atemu@lemmy.ml 1 points 11 months ago

Even with btrfs "weird archives" such as Borg's or restic's are preferred for backups.

[-] snekerpimp@lemmy.world 3 points 11 months ago

I currently use restic, but borg backup or just rsync would do well for what you need.

[-] DaveedMee@beehaw.org 2 points 11 months ago

I use timeshift on my arch, debian and fedora systems. First backup mirrors your whole drive, every new backup kinda does it like docker, files which stayed the same are being symlinked to the og backup and for file changes it puts the newer file into the next backup, file deletions just don't get links, so you have versioning. U can set how often backups will happen daily/weekly/monthly and how many are kept, doing backups manually is an option too. also you can set what folders to include, exclude and all that good stuff.

[-] bushvin@lemmy.world 2 points 11 months ago

The question is not which tool should I use?

The question is what is it that you want to achieve? That will drive your choice of tools.

I want to mirror my drive can be achieved by a lot of tools. But I want to be able to restore a file I accidentally deleted up to 24 hours with a 1 hour interval is a totally different game.

For backups I am very fond of restic as it does a lot of things in a simple way: encryption, (incremental) snapshots, mounting of said snapshots, support various storage backends, policy based purging, tagging, …

Your tool may not be able to do all you need, like automated scheduled backups, so you will need to also learn cron (or whatever scheduler you may have)

And finally, what about maintenance? What should happen to all those files you’ve synced? How long do you want to keep them?

[-] Holzkohlen@feddit.de 2 points 11 months ago

Just setup an rsync script. I use that KDE backup tool instead. It's just a gui to setup auto rsync backups.

[-] Pantherina@feddit.de 1 points 11 months ago

Kup, right? It has a systemsettings page?

[-] terminhell@lemmy.dbzer0.com 1 points 11 months ago

Lots of great suggestions here.

What about straight up disk cloning? Like, with dd to a dedicated backup drive?

[-] far_university1990@feddit.de 1 points 11 months ago

https://lemmy.ml/post/6979643 this might be a related posts with already a few answers

[-] ChojinDSL@discuss.tchncs.de 1 points 11 months ago

So many options. As others have mentioned, rsync, borg, restic, etc. You might want to look into filesystem snapshots. If you use something like BTRFS you can create instant snapshots and send them to a second BTRFS formatted disk or even a remote system with a BTRFS filesystem.

ZFS would also work here.

I use btrbk for automatic BTRFS snapshots and backing them up to remote systems.

If you want built-in encryption you can use Borg or Restic, which also has the advantage of deduplicating within a single backup set. Restic can also backup to an s3 bucket, in case you want to use a cloud service.

[-] Pantherina@feddit.de 1 points 11 months ago* (last edited 11 months ago)

Thanks! I have a local drive, does btrbk work there too?

I am on Fedora so BTRFS ftw

[-] ChojinDSL@discuss.tchncs.de 2 points 11 months ago

Yes of course. On the btrbk homepage they even describe how to set it up so that a backup gets triggered automatically when you plug in a designated backup drive.

My setup is to create local snapshots and keep X amount of local snapshots. Copy snapshots to a remote server and keep a different amount of snapshots there. Finally I also have a backup drive and btrbk is setup to copy all my local snapshots to that backup drive when it's plugged in.

this post was submitted on 07 Nov 2023
20 points (85.7% liked)

Linux

47766 readers
1217 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