I don't think I have the permissions for this. Probably it's a task for a moderator...
Beiträge von ftriscari
-
-
Hi there,
I just set up timeshift in my two openmediavault machines. I just wanted to describe my process (almost a mini-guide) in case somebody finds it useful. Any comments are welcome!!
Timeshift is a well known software to run a back-up of a running system, with the ability to create snapshots.
On normal desktop machines the program has a very nice and functional GUI for both set-up and restore process.
For an headless system the configuration needs to be performed via CLI, but this is really easy. Similarly, it is possible to revert to a previous snapshot via CLI or using a live distro (e.g. Systemrescue) in case the main system is no longer functional.
1) First thing we need to install timeshift. From terminal run
next we need to write the configuration file
copy and edit the following text in the configuration file:
Code
Alles anzeigen{ "backup_device_uuid" : "UUID of the disk that will contain the backup files", "parent_device_uuid" : "", "do_first_run" : "false", "btrfs_mode" : "false", "include_btrfs_home_for_backup" : "false", "include_btrfs_home_for_restore" : "false", "stop_cron_emails" : "true", "schedule_monthly" : "false", "schedule_weekly" : "true", "schedule_daily" : "false", "schedule_hourly" : "false", "schedule_boot" : "false", "count_monthly" : "2", "count_weekly" : "3", "count_daily" : "5", "count_hourly" : "2", "count_boot" : "5", "date_format" : "%Y-%m-%d %H:%M:%S", "exclude" : [ "/home/USERNAME/**", "+ /srv/salt/***", "+ /srv/pillar/***", "/srv/**", "/root/**" ], "exclude-apps" : [] }
the content of the file is self explanatory and it closely mimics the GUI parameters that are filled in during the set-up process on a desktop machine.
pay attention to the following
- enter the UUID of the disk that will save the backup files (not the main disk). Saving the files in a disk that is not the main system is highly recommended
- in the exclude section add the home directory for each user in the system
- the include/exclude syntax requires you to add first the directories to include and then the directories to exclude, in this order, see my example with the /srv directory . The other way round fails on my system
- look up the difference between *, ** and ***
Once all this is taken care of, run the following command to make the first snapshot
the command will create the first snapshot and it will create a new cron job /etc/cron.d/timeshift-hourly
every hour the system will run the check command and create snapshots based on the json file
that's it!
to restore the system to a previous snapshot run
and the system will interactively guide you during the task. Alternatively fire up Systemrescue, timeshift is included in the base packages.
as usual:
is your best friend.
Enjoy!
FT
-
Essentially that's my backup strategy.
I set up the usb backup plugin with a number of shares as source and 3 external hard drives as target.
At regular intervals I plug them in and wait for the backup to complete.
-
It's an hidden folder...
-
-
Ok give it a go. Check the options for the smb shares, it's in the same place where you enable the recycle bin.
-
Hi Birdybird,
Check the workaround I described in my other thread, see if it works for you
FT
-
Hi chente,
yes, the shares were created with the method you just described.
I think I just found a workaround which may help identifying the root cause.
I enabled the recycle bin for the shares in the pool. Now it works perfectly again and if I delete the content of the bin form OMV GUI no error messages (so I set it up with an automatic deletion after 24h)
I can only guess that the delete command passed by the android client is somehow different from the delete command from a linux computer.
I have no idea how these could be different but it could be a peculiar configuration of the android client (BTW I tried other 3 apps with the same results but in general the APIs could be the same so....go figure!)
I hope this thread can help other people if they have the same issues (@ Birdybird)
-
ok, some more interesting results.
I created two files, both using a SMB client. The first one from an ANDROID phone and the second from my Laptop running Linux accessing the SMB share via Dolphin (I called them Android and Laptop, very original, I know
).
accessing the NAS via CLI I run a STAT command:
Code
Alles anzeigenstat android.txt File: android.txt Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 0,39 Inode: 1319411178793694951 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/francesco) Gid: ( 100/ users) Access: 2024-05-18 10:02:14.214778075 +0100 Modify: 2024-05-18 10:02:14.214778075 +0100 Change: 2024-05-18 10:02:14.214778075 +0100 Birth: - $ stat laptop.txt File: laptop.txt Size: 2 Blocks: 8 IO Block: 4096 regular file Device: 0,39 Inode: 13820027614752166011 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/francesco) Gid: ( 100/ users) Access: 2024-05-18 10:02:52.183273757 +0100 Modify: 2024-05-18 10:02:52.232403600 +0100 Change: 2024-05-18 10:02:52.227274332 +0100 Birth: -
Hence both files are created with the same permissions and ownership
Now, if the files are deleted from the laptop SMB client, or via CLI, no issues. If the files are deleted from the phone we have the panic message.
Next I created a new shared folder outside the mergerfs pool on the system drive.
Same exercise, the two files are created with the same permissions however the problem here is not replicated and everything works as expected.
To me this means that the problem exists on SMB shares created in the mergerfs pool and something between the SMB client, the share and mergerfs is not working right.....
any ideas?
FT
-
I need to investigate this a little bit more. The solutions proposed so far do not work so I want to check if there's something wrong with my configuration. During the weekend I should have some time to try.
Just to emphasize that in my case the problem happened as I deployed mergerfs.
Before this, Samba was working just fine from windows/linux/android.
As I said something may be wrong with my file permissions and ownership.. I need to dig a little deeper.
-
unfortunately it didn't work
in the extra options I used the "force user =" option from the SAMBA manual but the behaviour is still the same.
I also tried the options to inherit permissions and ACLs, also that didn't work
I tried forcing the protocol to SMB3 just in case but no success either
-
...just an update....
it looks like a permission issues. I update/checked the permissions of my user and the problem seems to have been resolved if I access the SAMBA share from my desktop (KDE/Dolphin)
if I access the same share from my phone - same account-, upon deleting a file I get the same error. so it looks like I managed to fix it from a desktop access but not from a phone access...
-
Hi All,
Today I used mergerfs to create a pool with two drives, and I created new shares pointing to folders which were already existing.
Everything works quite well except that I receive a constant stream of emails like the one below
CodeThe Samba 'panic action' script, /usr/share/samba/panic-action, was called for PID 48241 (). This means there was a problem with the program, such as a segfault. However, the executable could not be found for process 48241. It may have died unexpectedly, or you may not have permission to debug the process.
This only happens is a file is deleted via SAMBA.
I used the reset permissions plugin to ensure that the share are 2775 and all existing ACLs are deleted.
unfortunately no success, I'm still receiving the same email.
To me it sounds like a SAMBA vs mergerfs permissions fight but I can't identify the cause.
Any help would be much appreciated.
Regards,
FT
-
Hi All,
I'm looking into a number of options for data archival and long term backup.
I already have a reasonably good backup system which uses multiple drives (internal and external) for the really important stuff (documents and family photos).
I'm considering a long term archival solution which will keep about 3TB of data safe for the next decade or two, somewhere off-site.
I looked into MDisks and Blu Rays but I'm not sure if this is the right solution for me
.
Used external SAS tape drives are becoming really cheap (LTO4 approx 100€/$/£, LTO5 approx 200€/$/£)
Any thoughts or recommendation? I know that many of you are IT professionals, any suggestion would be appreciated.
thank you!
FT
-
Ah!!
it worked thank you. I'm using pihole and this was the issue.
it's strange as I didn't need to specify the DNS address before the system upgrade to OMV7....I believe that my router is diverting all DNS requests to the pihole IP address.
anyway...problem solved thank you again
FT
-
thank you for the quick reply!
Code
Alles anzeigenIgn:1 https://download.docker.com/linux/debian bookworm InRelease Ign:2 https://openmediavault-plugin-developers.github.io/packages/debian sandworm InRelease Ign:3 http://httpredir.debian.org/debian bookworm-backports InRelease Get:4 file:/var/cache/openmediavault/archives InRelease Ign:4 file:/var/cache/openmediavault/archives InRelease Ign:5 http://security.debian.org/debian-security bookworm-security InRelease Ign:6 http://packages.openmediavault.org/public sandworm InRelease Ign:7 http://deb.debian.org/debian bookworm InRelease Ign:8 https://openmediavault.github.io/packages sandworm InRelease Get:9 file:/var/cache/openmediavault/archives Release Ign:9 file:/var/cache/openmediavault/archives Release Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Ign:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:10 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Ign:12 http://deb.debian.org/debian bookworm-updates InRelease Ign:3 http://httpredir.debian.org/debian bookworm-backports InRelease Ign:5 http://security.debian.org/debian-security bookworm-security InRelease Ign:1 https://download.docker.com/linux/debian bookworm InRelease Ign:7 http://deb.debian.org/debian bookworm InRelease Ign:6 http://packages.openmediavault.org/public sandworm InRelease Ign:2 https://openmediavault-plugin-developers.github.io/packages/debian sandworm InRelease Ign:8 https://openmediavault.github.io/packages sandworm InRelease Ign:12 http://deb.debian.org/debian bookworm-updates InRelease Ign:5 http://security.debian.org/debian-security bookworm-security InRelease Ign:3 http://httpredir.debian.org/debian bookworm-backports InRelease Ign:1 https://download.docker.com/linux/debian bookworm InRelease Ign:7 http://deb.debian.org/debian bookworm InRelease Ign:6 http://packages.openmediavault.org/public sandworm InRelease Ign:2 https://openmediavault-plugin-developers.github.io/packages/debian sandworm InRelease Ign:8 https://openmediavault.github.io/packages sandworm InRelease Ign:12 http://deb.debian.org/debian bookworm-updates InRelease Err:5 http://security.debian.org/debian-security bookworm-security InRelease Temporary failure resolving 'security.debian.org' Err:1 https://download.docker.com/linux/debian bookworm InRelease Temporary failure resolving 'download.docker.com' Err:3 http://httpredir.debian.org/debian bookworm-backports InRelease Temporary failure resolving 'httpredir.debian.org' Err:6 http://packages.openmediavault.org/public sandworm InRelease Temporary failure resolving 'packages.openmediavault.org' Err:7 http://deb.debian.org/debian bookworm InRelease Temporary failure resolving 'deb.debian.org' Err:2 https://openmediavault-plugin-developers.github.io/packages/debian sandworm InRelease Temporary failure resolving 'openmediavault-plugin-developers.github.io' Err:8 https://openmediavault.github.io/packages sandworm InRelease Temporary failure resolving 'openmediavault.github.io' Err:12 http://deb.debian.org/debian bookworm-updates InRelease Temporary failure resolving 'deb.debian.org' Reading package lists... Done W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch https://download.docker.com/linux/debian/dists/bookworm/InRelease Temporary failure resolving 'download.docker.com' W: Failed to fetch https://openmediavault-plugin-developers.github.io/packages/debian/dists/sandworm/InRelease Temporary failure resolving 'openmediavault-plugin-developers.github.io' W: Failed to fetch http://httpredir.debian.org/debian/dists/bookworm-backports/InRelease Temporary failure resolving 'httpredir.debian.org' W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'security.debian.org' W: Failed to fetch http://packages.openmediavault.org/public/dists/sandworm/InRelease Temporary failure resolving 'packages.openmediavault.org' W: Failed to fetch https://openmediavault.github.io/packages/dists/sandworm/InRelease Temporary failure resolving 'openmediavault.github.io' W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and
Code
Alles anzeigenii libopenmpt0:amd64 0.6.9-1 amd64 module music library based on OpenMPT -- shared library ii openmediavault 7.0.3-1 all openmediavault - The open network attached storage solution ii openmediavault-autoshutdown 7.0 all OpenMediaVault AutoShutdown Plugin ii openmediavault-compose 7.0.10 all OpenMediaVault compose plugin ii openmediavault-cputemp 7.0 all cpu temperature plugin for openmediavault ii openmediavault-diskstats 7.0-2 all openmediavault disk monitoring plugin ii openmediavault-downloader 7.0 all OpenMediaVault downloader plugin ii openmediavault-flashmemory 7.0 all folder2ram plugin for openmediavault ii openmediavault-kernel 7.0.3 all kernel package ii openmediavault-keyring 1.0.2-2 all GnuPG archive keys of the openmediavault archive ii openmediavault-omvextrasorg 7.0 all OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-rsnapshot 7.0 all OpenMediaVault rsnapshot backup plugin. ii openmediavault-sharerootfs 7.0-1 all openmediavault share root filesystem plugin ii openmediavault-symlinks 7.0 all OpenMediaVault symlinks plugin ii openmediavault-usbbackup 7.0.1-2 all openmediavault USB/eSATA/SD backup plugin
-
Dear All,
I successfully update from OMV 6 to 7 (thank you for all the hard work to make it so easy!)
After the update I'm unable to run updates or to add new plugins.
Running the apt-get update from terminal, I see a lot of errors which indicate that the system is unable to resolve or fetch files from the repositories.
I tried OMV-firstaid but it shows the same errors.
thank you in advance for your help!
FT
-
Hi
I’d like to mount a samba share – located in my NAS box – on
my laptop running linux mint.I tried editing FSTAB a couple of times but I can only
access the share in read mode.What’s the correct syntax to use to gain R/W access?
Thanks
FT
-
+1 for Pydio
-
The offsite backup really is the only advantage…(for the average home user!)