ryecoaaron - thank will see in a few days then. BTW - Interesting about the 'find' command. Need to read more about it. I actually used it in my cron scripts a while ago to delete old daily, weekly and monthly backups and never had any issues.
It's safer not to use spaces in directory and file names.
And Linux names are also case sensitive.
Yeah. I thought it may be a problem. That's why I mentioned that. Thanks. Will try that.
I use backup plugin with scheduled backup jobs (running every 2 days).
There is an option Keep (with description "Keep the last x days of backups"). I have is set to 5, but doesn't seems like old backups are deleted. At the moment I have 7 backups and the oldest is from the 17th of Feb. The only non-standard thing is a different path and additional sub-directory for backups added in /etc/default/openmediavault and it looks like that:
which saves a backup to /backups/omvbackup/ and sub-directory with a current date and hour.
Could anyone explain how to set it up to keep only last few backups please?
I have 4GB version, but OMV5 with a light usage and SMB + NFS active uses 4% of memory. Currently 136MB used. Max used value was 165MB. A page cache occasionally goes up to 3.5GB (rsync or backup process), but usually stays at around 1.0-1.5GB, so 4GB is plenty for OMV use, unless you use it heavily.
It doesn't look like /srv takes lot of space.
Is the 5.1G in root fs ("/") a swapfile?
Also 1.5G in /var looks suspicious after cleaning logs and apt cache.
try du -xhd1 /var to see, but anyway it's only 1.5GB (BTW what is the size of your drive?).
First two lines will clean apt cache and remove not used dependencies.
Last line will delete logs older than 3 days.
That should free up some space.
Try this command before and after the cleanup to see if there is any difference:
A full drive (either storage or system one) may give you similar errors too.
Check if you have any space left on them.
You are right. Quiet mode was selected as well as sending email, but I guess if no errors then there is no notification.
Thanks for a tip. I didn't really know what the quiet mode means.
I'm not sure if it helps, but when I try to login to OMV from Firefox on my Android phone it redirects to login page all the time (after putting the correct credentials). Maybe it's something to do with your browser? Try a different one if you can.
I first read about the MS repo a week or so after my first OS Lite installation, then OMV installation via the script on RPi2B. Checked the /etc/apt/sources.list.d/vscode.list file. It existed, but it was empty already.
Then a couple of days ago I installed OS via the same image and OMV via the same script on my brand new RPi4 and the same situation - vscode.list file is empty.
So I don't think it's a script.
Yesterday one of my scheduled rsync jobs (added via services > rsync > jobs) executed ok.
Files copied, log generated, notification email sent.
Last night there was another job. Same setting as above, but syncing different folders on a different day.
I've checked it this morning - files copied, but nothing in rsync logs (last rsync jobs log is from the first job above) and no email notification.
When checked a CPU load and Disk I/O and Disk space in OMV GUI I can see there was an activity from around 2am for 2 hours, so exactly when the the rsync job was scheduled.
The system is up-to-date OMV5 on RPi4 if that helps.
I use Linux for last 15 years (as a user rather than a programmer), but never seen anything line that before.
Could someone explain it?
Please paste here a results of these two commands:
1st will output all files matching pattern *phpvirtualbox* in their name (case insensitive)
2nd will find all files in /etc which content word phpvirtualbox in them
In both cases we expect config files of php or a web server.
What is the difference between
Services | Rsync | Jobs
System | Scheduled Jobs
I understand that the first are for rsync only, the second one is more versatile (any command).
Can I add rsync to scheduled jobs instead if I know the command? Will it work?
Which way is preferred in OMV and why?
rtcwake command + RTC hardware module for RPi ?
rtcwake command perhaps? I think it would require RTC module, but ther are available for Pi's for £5 or so.
bleachbit can be used for deleting old logs and other stuff. I use GUI version under my Linux system, but there is also CLI (command line) version.
Also logrotate actually does exactly that - zips old logs to an archive file and keep them for a certain amount of days / weeks then delete them. You can re-configure it to delete them sooner.
RPi's are powered from 5V. Why to use mains powered UPS devices? Probably a good powerbank would be enough to power it for a while in case of a power shortage.
I need to test one for my RPi.