[opensuse] Simple backuping user data to external storage with removable media drive
Looking for simple ways, e.g. maybe some script, rsync, schedule with at or cronsomething, to backup a bunch of files onto some removable media drive e.g. attached via usb to a leap 42.2 machine for instance. Any good pointers on what would be an easy, scriptable and automatable way to achieve this? I have some long path names so I probably need to stick to ext-something on the removable drive as well. The files all belong to a certain username on the linux machine, or maybe a group, but nothing really complex. The script and the tools would hopefully run as this normal username on the leap machine. I wonder if all this stuff about mounting the removable media and writing to it, later unmounting and ejecting the removable media can be achieved with a normal restricted nonroot user and nonroot scripts. I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs. Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something. Is there any cool solution already out there for me to use? I am new to this. Thanks for all the hints and pointers. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op zondag 20 november 2016 15:32:33 CET schreef cagsm:
Looking for simple ways, e.g. maybe some script, rsync, schedule with at or cronsomething, to backup a bunch of files onto some removable media drive e.g. attached via usb to a leap 42.2 machine for instance.
Any good pointers on what would be an easy, scriptable and automatable way to achieve this? I have some long path names so I probably need to stick to ext-something on the removable drive as well. The files all belong to a certain username on the linux machine, or maybe a group, but nothing really complex. The script and the tools would hopefully run as this normal username on the leap machine. I wonder if all this stuff about mounting the removable media and writing to it, later unmounting and ejecting the removable media can be achieved with a normal restricted nonroot user and nonroot scripts.
I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs.
Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something.
Is there any cool solution already out there for me to use? I am new to this. Thanks for all the hints and pointers.
rsync indeed, or luckybackup if you want a GUI -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun 20 Nov 2016 06:11:03 PM CST, Knurpht - Gertjan Lettink wrote:
Op zondag 20 november 2016 15:32:33 CET schreef cagsm:
Looking for simple ways, e.g. maybe some script, rsync, schedule with at or cronsomething, to backup a bunch of files onto some removable media drive e.g. attached via usb to a leap 42.2 machine for instance.
Any good pointers on what would be an easy, scriptable and automatable way to achieve this? I have some long path names so I probably need to stick to ext-something on the removable drive as well. The files all belong to a certain username on the linux machine, or maybe a group, but nothing really complex. The script and the tools would hopefully run as this normal username on the leap machine. I wonder if all this stuff about mounting the removable media and writing to it, later unmounting and ejecting the removable media can be achieved with a normal restricted nonroot user and nonroot scripts.
I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs.
Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something.
Is there any cool solution already out there for me to use? I am new to this. Thanks for all the hints and pointers.
rsync indeed, or luckybackup if you want a GUI
Hi You could test my cronopete package... https://software.opensuse.org/package/cronopete -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE Leap 42.1|GNOME 3.16.2|4.1.34-33-default up 22:36, 2 users, load average: 0.18, 0.19, 0.18 CPU AMD Athlon(tm) II X4 635 @ 2.90GHz | GPU Nvidia GeForce 8800 GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20.11.2016 15:32, cagsm wrote:
Looking for simple ways, e.g. maybe some script, rsync, schedule with at or cronsomething, to backup a bunch of files onto some removable media drive e.g. attached via usb to a leap 42.2 machine for instance.
Any good pointers on what would be an easy, scriptable and automatable way to achieve this? I have some long path names so I probably need to stick to ext-something on the removable drive as well. The files all belong to a certain username on the linux machine, or maybe a group, but nothing really complex. The script and the tools would hopefully run as this normal username on the leap machine. I wonder if all this stuff about mounting the removable media and writing to it, later unmounting and ejecting the removable media can be achieved with a normal restricted nonroot user and nonroot scripts.
I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs.
Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something.
Is there any cool solution already out there for me to use? I am new to this. Thanks for all the hints and pointers.
I use systemd/udev to run a rsnapshot based backup script on device attach. So whenever i plug the usb drive on my server, the backup runs. 2 hours later i simply unplug the usb drive. Here is how it can be done: https://redflo.de/tiki-index.php?page=Autobackup+Linux+on+USB+device+attach
On 20/11/16 15:32, cagsm wrote:
Looking for simple ways, e.g. maybe some script, rsync, schedule with at or cronsomething, to backup a bunch of files onto some removable media drive e.g. attached via usb to a leap 42.2 machine for instance.
Any good pointers on what would be an easy, scriptable and automatable way to achieve this? I have some long path names so I probably need to stick to ext-something on the removable drive as well. The files all belong to a certain username on the linux machine, or maybe a group, but nothing really complex. The script and the tools would hopefully run as this normal username on the leap machine. I wonder if all this stuff about mounting the removable media and writing to it, later unmounting and ejecting the removable media can be achieved with a normal restricted nonroot user and nonroot scripts.
I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs.
Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something.
Is there any cool solution already out there for me to use? I am new to this. Thanks for all the hints and pointers.
Could Kup be what you're looking for? https://www.linux-apps.com/p/1127689 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
A quick thank you to all the replicants on the thread for all the neat projects and answers. Will check them out. Many thank yous. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, Nov 20, 2016 at 9:32 AM, cagsm
I have some long path names so I probably need to stick to ext-something on the removable drive as well.
BTW: If you're thinking about the 250 or so character limit on the path of NTFS drives: NTFS has a 32K path limit. Unfortunately in Windows 95/98 timeframe MS introduced a kernel API with a 250 (or so) char limit to the path. Since then they introduced their Unicode API with the 32K path limit. That's great for the tools that have updated their choice of API in the last 15 or so years, but lots of Windows software still uses the legacy API.
From Linux, I'm not aware of the 250 char limit ever having been an issue.
And as far as I know, in Windows the 250 char limit is cross filesystem. Thus if you use a ext? FS in windows, but your userland tool still uses the old API, you will have exactly the same problems as if you were using NTFS. If you care, 7zip uses the "new" api, so it is what I use almost exclusively in Windows for zip functionality. HTH Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Sonntag, 20. November 2016, 15:32:33 schrieb cagsm:
[...] I guess rsync with some mirror method to only freshen and update and add to the removable media would suffice for my needs.
You should keep not only one backup version of your files but a history for some period of time. Something like snapshots so that every backup seems to be complete but the unchanged files are actually hardlinks. I am using storeBackup. It uses hardlinks for deduplication, deletes backups after some time (or number of backups) and offers optional compression.
Maybe longer term stuff, would be as these removable media would be taken to some secure place safe or vault, that the media need another encryption layer underneath the ext-something. [...]
Just use YaST to setup an encrypted partition on your removable media. KDE and GNOME will automatically ask for the password when the media is plugged in. That even works with iSCSI on a NAS. Gruß Jan -- We, the willing, led by the unknowing are doing the impossible for the ungrateful. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
cagsm
-
Florian Gleixner
-
Greg Freemyer
-
gumb
-
Jan Ritzerfeld
-
Knurpht - Gertjan Lettink
-
Malcolm