auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
241 stars 36 forks source link

Trim file modified warnings #115

Closed Izumiko closed 2 months ago

Izumiko commented 2 months ago

Running the SnapRAID script while files are being modified (e.g. BT download) triggers a large number of warnings. When sending an email after the script has finished executing, it will fail due to Argument list too long because the content is too long.

auanasgheps commented 2 months ago

Hi! This might be fixed by #114, but I'm not sure.

I will dig into this, but ideally you should stop your/pause your BT client using custom hooks or Container management.

auanasgheps commented 2 months ago

My previous comment was wrong, as it is referred to another issue. I like your approach.

auanasgheps commented 2 months ago

@Izumiko can you please re-open this agains the dev branch? Thanks

Izumiko commented 2 months ago

I will dig into this, but ideally you should stop your/pause your BT client using custom hooks or Container management.

Yes, this is a better way. However, my BT client and other services are on another device, some of them aren't conveniently stopped, so I have to ignore these warnings.

auanasgheps commented 2 months ago

I will dig into this, but ideally you should stop your/pause your BT client using custom hooks or Container management.

Yes, this is a better way. However, my BT client and other services are on another device, some of them aren't conveniently stopped, so I have to ignore these warnings.

You can still do this, but takes more work. If you're using another Linux server with Docker, this script has built in remote docker management. If you're using not Docker, you can still build a small script to stop and restart the remote service using "custom hooks".

Please note that as SnapRAID best practise, you should not modify files during a sync, as you could invalidate the snapshot it is taking. Be aware of this, it is for your safety!!!

I will merge your PR (actually the other one for the dev branch) because it matches my goal that these emails should be easy to read.

Izumiko commented 2 months ago

Thanks for your advice, I will try to write a script to pause my services.