What Makes save.dat File Grow? There A "Prune" App For It?

Post here if you are a new Porteus member and you're looking for some help.
jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

What Makes save.dat File Grow? There A "Prune" App For It?

Post#1 by jimwg » 01 Jan 2014, 13:36

Happy New Year All!

In exploring Porteus I was happy to learn that unlike Puppy that you can actually open up and do surgery on a save.dat and maybe shrink it so. I'd like to know exactly piles up in a save.dat file to make it grow? I know that if I use zero cache in SeaMonkey browser and delete any junk or unneeded files in SeaMonkey Mail that it keeps the save.dat file size more or less down (and I hope to learn to use shortcut or alias files so that SeaMonkey Maile's main files reside in my /mnt/sdb1/Copy/Documents/ folder if possible). My main question is, is there a way to tell what other files are making save.dat swell so I could once a while prune them out? My logic says if there was a way to tell by date stamp which files were added since installation that it'd make this process far easier but there's no Catfish-style file manager in Porteus to do such so far.

Any hints much appreciated!

Jim in NYC

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#2 by Ed_P » 01 Jan 2014, 17:05

Happy New Year to you also Jim.

My save.dat file is 128MB and I watch it's size by doing these steps (from my Notes file):

Code: Select all

# View space usage of porteussave.dat file
** With changes= cheatcode not used
 su
 toor
 mloop  /mnt/sda6/porteussave.dat
 du -sh /mnt/loop     # Show the amount used   - OR -
 df -h  /mnt/loop     # Show filesystem summary
 uloop                # unmount the loop
   http://forum.porteus.org/viewtopic.php?f=81&t=1941&start=15#p13272
While I haven't tried it I believe with the dat file mounted you could explore it's contents with SpaceFM.

In that it's a reflection of your live system I believe deleing files from your live system will result in them being deleted from the save.dat file also.

Another thing that I do, once my system is configured the way that I want with signons, bookmarks, apps and scripts, I make a backup copy of the save.dat file, and if things get out of hand I restore from the backup.

hth

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#3 by Ed_P » 12 Jan 2014, 20:37

Something that does grow in the save.dat file are log files. And there are several that retain everything since the 1st boot of Porteus. Look here for more info. /mnt/live/memory/changes/var/log

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#4 by fanthom » 12 Jan 2014, 20:54

@Ed_P
could you show me output of 'ls -al /var/log' command please and i may find a cure for this.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#5 by Ed_P » 12 Jan 2014, 21:26

fanthom wrote:@Ed_P
could you show me output of 'ls -al /var/log' command please and i may find a cure for this.

Code: Select all

guest@porteus:~$ ls -al /var/log
total 3548
drwxr-xr-x 31 root root      320 Jan 12 15:17 ./
drwxr-xr-x 32 root root      160 Jan 12 15:16 ../
drwxr-xr-x  2 root root       60 Jan 12 15:16 ConsoleKit/
-rw-r--r--  1 root root    41986 Jan 12 15:16 Xorg.0.log
-rw-r--r--  1 root root    42767 Jan 12 00:33 Xorg.0.log.old
-rw-r--r--  1 root root    42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest   42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root        0 May 31  2013 btmp
-rw-r--r--  1 root root     2871 Jan 12 15:16 cron
-rw-r--r--  1 root root   582494 Jan 12 15:16 debug
-rw-r--r--  1 root root    43221 Jan 12 15:16 dmesg
-rw-r--r--  1 root root        0 Sep 13  2012 faillog
-rw-r--r--  1 root root       11 Dec 30 01:09 internet
-rw-r--r--  1 root root   292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root        0 Oct 20  2010 maillog
-rw-r--r--  1 root root  1752263 Jan 12 15:47 messages
drwxr-xr-x  2 root root        3 May 16  2001 nfsd/
drwxr-xr-x  2 root root      113 Jul 19 01:03 packages/
-rw-r--r--  1 root root     2094 Jan 12 15:17 pm-powersave.log
-rw-r--r--  1 root root      847 Jan 12 15:16 porteus-livedbg
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root        3 May  3  2012 scripts/
-rw-r--r--  1 root root    24707 Jan 12 15:16 secure
drwxr-xr-x  4 root root       26 Jan  4  2012 setup/
-rw-r--r--  1 root root     2139 Jan 12 15:16 slim.log
-rw-r--r--  1 root root        0 Oct 20  2010 spooler
-rw-r--r--  1 root root   307535 Jan 12 16:05 syslog
-rw-r--r--  1 root root    10542 Jan 12 15:17 wpa_supplicant.log
-rw-r--r--  1 root root   398208 Jan 12 15:16 wtmp
:shock: This list shows a whole lot more files than SpaceFM's view of /mnt/live/memory/changes/var/log.

The logs I was referring to have entries like this cron file:

Code: Select all

Dec  3 16:29:22 porteus crond[1945]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  3 17:46:50 porteus crond[2009]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  4 14:52:54 porteus crond[2468]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  6 18:41:07 porteus crond[1991]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 11:30:49 porteus crond[2017]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 14:27:16 porteus crond[2014]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  9 13:35:05 porteus crond[2043]: crond 4.5 dillon's cron daemon, started with loglevel notice 
and secure file:

Code: Select all

ec  3 16:29:38 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  3 16:33:57 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  3 16:34:13 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  3 16:40:53 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  3 17:47:05 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  3 18:03:25 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  3 18:03:39 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  3 18:09:01 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  3 18:09:15 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session3 (system bus name :1.33 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  3 18:41:03 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session3 (system bus name :1.33, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  4 14:53:09 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  4 15:14:20 porteus su[2936]: Successful su for root by guest
Dec  4 15:14:20 porteus su[2936]: + /dev/pts/0 guest:root
Dec  4 15:44:04 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  6 18:41:22 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.12 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  6 18:44:34 porteus su[2399]: Successful su for root by guest
Dec  6 18:44:34 porteus su[2399]: + /dev/pts/0 guest:root
Dec  6 19:05:15 porteus su[2489]: Successful su for root by guest
Dec  6 19:05:15 porteus su[2489]: + /dev/pts/0 guest:root
Dec  6 19:31:18 porteus su[2557]: Successful su for root by guest
Dec  6 19:31:18 porteus su[2557]: + /dev/pts/0 guest:root
Dec  6 19:31:18 porteus su[2558]: Successful su for root by guest
Dec  6 19:31:18 porteus su[2558]: + /dev/pts/0 guest:root
Dec  6 19:33:56 porteus su[2635]: Successful su for root by guest
Dec  6 19:33:56 porteus su[2635]: + /dev/pts/0 guest:root
Dec  6 19:33:56 porteus su[2636]: Successful su for root by guest
Dec  6 19:33:56 porteus su[2636]: + /dev/pts/0 guest:root
Dec  6 19:49:26 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.12, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  7 11:31:03 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  7 11:41:32 porteus su[2450]: Successful su for root by guest
Dec  7 11:41:32 porteus su[2450]: + /dev/pts/0 guest:root
Dec  7 12:53:10 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  7 14:27:30 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  7 14:31:44 porteus su[2379]: Successful su for root by guest
Dec  7 14:31:44 porteus su[2379]: + /dev/pts/0 guest:root
Dec  7 15:54:42 porteus su[2526]: Successful su for root by guest
Dec  7 15:54:42 porteus su[2526]: + /dev/pts/0 guest:root
Dec  7 15:54:42 porteus su[2527]: Successful su for root by guest
Dec  7 15:54:42 porteus su[2527]: + /dev/pts/0 guest:root
Dec  7 15:56:06 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  9 13:35:20 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  9 13:41:41 porteus login[1975]: ROOT LOGIN  on '/dev/tty2'
Dec  9 13:41:49 porteus polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24 [razor-policykit-agent], object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec  9 14:02:55 porteus su[3297]: Successful su for root by root
Dec  9 14:02:55 porteus su[3297]: + ??? root:root
Dec  9 14:02:55 porteus su[3336]: Successful su for root by root
Dec  9 14:02:55 porteus su[3336]: + ??? root:root
Dec  9 14:29:13 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.11, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec  9 14:29:18 porteus polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.24, object path /org/razorqt/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Something that deletes entries after 7 days would be useful IMO.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#6 by fanthom » 13 Jan 2014, 10:01

Something that deletes entries after 7 days would be useful IMO.
we have it - it's called logrotate:
https://wiki.archlinux.org/index.php/Logrotate
for some reason it does not work - maybe due to cron perms issues mentioned in Arch wiki. could you edit /etc/logrotate.conf and unhash 'compress' option then run as root:

Code: Select all

logrotate /etc/logrotate.conf
once you do it please show me output of 'ls -al /var/log' again.
thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#7 by Ed_P » 14 Jan 2014, 00:48

Found the file, made the change, tried to save and got:
Can't open file to write
Then tried this approach:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# leafpad /etc/logrotate.conf
root@porteus:/home/guest# logrotate /etc/logrotate.conf
root@porteus:/home/guest# ls -al /var/log
total 3772
drwxr-xr-x 31 root root      320 Jan 13 19:25 ./
drwxr-xr-x 32 root root      160 Jan 13 19:25 ../
drwxr-xr-x  2 root root       60 Jan 13 19:25 ConsoleKit/
-rw-r--r--  1 root root    41983 Jan 13 19:25 Xorg.0.log
-rw-r--r--  1 root root    43211 Jan 13 00:29 Xorg.0.log.old
-rw-r--r--  1 root root    42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest   42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root        0 May 31  2013 btmp
-rw-r--r--  1 root root     3069 Jan 13 19:25 cron
-rw-r--r--  1 root root   622666 Jan 13 19:25 debug
-rw-r--r--  1 root root    43220 Jan 13 19:25 dmesg
-rw-r--r--  1 root root        0 Sep 13  2012 faillog
-rw-r--r--  1 root root       11 Dec 30 01:09 internet
-rw-r--r--  1 root root   292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root        0 Oct 20  2010 maillog
-rw-r--r--  1 root root  1873784 Jan 13 19:45 messages
drwxr-xr-x  2 root root        3 May 16  2001 nfsd/
drwxr-xr-x  2 root root      113 Jul 19 01:03 packages/
-rw-r--r--  1 root root     2050 Jan 13 19:25 pm-powersave.log
-rw-r--r--  1 root root      847 Jan 13 19:25 porteus-livedbg
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root        3 May  3  2012 scripts/
-rw-r--r--  1 root root    25879 Jan 13 19:50 secure
drwxr-xr-x  4 root root       26 Jan  4  2012 setup/
-rw-r--r--  1 root root     2261 Jan 13 19:25 slim.log
-rw-r--r--  1 root root        0 Oct 20  2010 spooler
-rw-r--r--  1 root root   350897 Jan 13 19:48 syslog
-rw-r--r--  1 root root    11246 Jan 13 19:25 wpa_supplicant.log
-rw-r--r--  1 root root   425856 Jan 13 19:25 wtmp
root@porteus:/home/guest# 
But cron still shows:

Code: Select all

Dec  3 16:29:22 porteus crond[1945]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  3 17:46:50 porteus crond[2009]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  4 14:52:54 porteus crond[2468]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  6 18:41:07 porteus crond[1991]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 11:30:49 porteus crond[2017]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 14:27:16 porteus crond[2014]: crond 4.5 dillon's cron daemon, started with loglevel notice 

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#8 by fanthom » 14 Jan 2014, 21:15

so must be something with logrotate rules. will dig into this - thanks for help.

EDIT:
ok got it - please edit /etc/logrotate.d/syslog as follows:

Code: Select all

/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog {
    rotate 1
    size 500k
    compress
    sharedscripts
    postrotate
	/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
    endscript
}
this will compress and rotate once all main logs if they reach 500KB in size. this rule will be added to next release.
please wait a day to check if cron will do the job for /var/log/messages, etc..
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#9 by Ed_P » 15 Jan 2014, 07:51

fanthom wrote:so must be something with logrotate rules. will dig into this - thanks for help.

EDIT:
ok got it - please edit /etc/logrotate.d/syslog as follows:
Done. I think 500K is a bit large though.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#10 by Ed_P » 16 Jan 2014, 06:13

It's been a day.

Code: Select all

guest@porteus:~$ ls -al /var/log
total 4104
drwxr-xr-x 31 root root      320 Jan 16 01:04 ./
drwxr-xr-x 32 root root      160 Jan 16 01:03 ../
drwxr-xr-x  2 root root       60 Jan 16 01:04 ConsoleKit/
-rw-r--r--  1 root root    41986 Jan 16 01:04 Xorg.0.log
-rw-r--r--  1 root root    42700 Jan 15 02:59 Xorg.0.log.old
-rw-r--r--  1 root root    42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest   42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root        0 May 31  2013 btmp
-rw-r--r--  1 root root     3366 Jan 16 01:03 cron
-rw-r--r--  1 root root   682924 Jan 16 01:03 debug
-rw-r--r--  1 root root    43220 Jan 16 01:03 dmesg
-rw-r--r--  1 root root        0 Sep 13  2012 faillog
-rw-r--r--  1 root root       11 Dec 30 01:09 internet
-rw-r--r--  1 root root   292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root        0 Oct 20  2010 maillog
-rw-r--r--  1 root root  2055182 Jan 16 01:04 messages
drwxr-xr-x  2 root root        3 May 16  2001 nfsd/
drwxr-xr-x  2 root root      113 Jul 19 01:03 packages/
-rw-r--r--  1 root root     2050 Jan 16 01:04 pm-powersave.log
-rw-r--r--  1 root root      847 Jan 16 01:03 porteus-livedbg
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root        3 May  3  2012 scripts/
-rw-r--r--  1 root root    27823 Jan 16 01:04 secure
drwxr-xr-x  4 root root       26 Jan  4  2012 setup/
-rw-r--r--  1 root root     2444 Jan 16 01:03 slim.log
-rw-r--r--  1 root root        0 Oct 20  2010 spooler
-rw-r--r--  1 root root   403131 Jan 16 01:06 syslog
-rw-r--r--  1 root root    12302 Jan 16 01:04 wpa_supplicant.log
-rw-r--r--  1 root root   467328 Jan 16 01:03 wtmp
guest@porteus:~$ 
cron still showing Dec entries

Code: Select all

Dec  3 16:29:22 porteus crond[1945]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  3 17:46:50 porteus crond[2009]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  4 14:52:54 porteus crond[2468]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  6 18:41:07 porteus crond[1991]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 11:30:49 porteus crond[2017]: crond 4.5 dillon's cron daemon, started with loglevel notice 
Dec  7 14:27:16 porteus crond[2014]: crond 4.5 dillon's cron daemon, started with loglevel notice 
same with messages entries

Code: Select all

Dec  3 16:29:14 porteus syslogd 1.5.0: restart.
Dec  3 16:29:14 porteus kernel: klogd 1.5.0, log source = /proc/kmsg started.
Dec  3 16:29:14 porteus kernel: [    0.000000] Initializing cgroup subsys cpu

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#11 by Ed_P » 17 Jan 2014, 22:57

Two days, still growing.

Code: Select all

root@porteus:/home/guest# ls -al /var/log
total 4348
drwxr-xr-x 31 root root      340 Jan 17 16:55 ./
drwxr-xr-x 32 root root      160 Jan 17 16:52 ../
drwxr-xr-x  2 root root       60 Jan 17 16:52 ConsoleKit/
-rw-r--r--  1 root root    55311 Jan 17 17:30 Xorg.0.log
-rw-r--r--  1 root root    42703 Jan 16 01:15 Xorg.0.log.old
-rw-r--r--  1 root root    42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest   42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root        0 May 31  2013 btmp
-rw-r--r--  1 root root     3465 Jan 17 16:52 cron
-rw-r--r--  1 root root   706978 Jan 17 17:30 debug
-rw-r--r--  1 root root    43220 Jan 17 16:52 dmesg
-rw-r--r--  1 root root        0 Sep 13  2012 faillog
-rw-r--r--  1 root root       11 Dec 30 01:09 internet
-rw-r--r--  1 root root   292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root        0 Oct 20  2010 maillog
-rw-r--r--  1 root root  2224623 Jan 17 17:53 messages
drwxr-xr-x  2 root root        3 May 16  2001 nfsd/
drwxr-xr-x  2 root root      113 Jul 19  2013 packages/
-rw-r--r--  1 root root     2050 Jan 17 17:30 pm-powersave.log
-rw-r--r--  1 root root     6583 Jan 17 17:30 pm-suspend.log
-rw-r--r--  1 root root      847 Jan 17 16:52 porteus-livedbg
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root        3 May  3  2012 scripts/
-rw-r--r--  1 root root    28471 Jan 17 17:22 secure
drwxr-xr-x  4 root root       26 Jan  4  2012 setup/
-rw-r--r--  1 root root     2505 Jan 17 16:52 slim.log
-rw-r--r--  1 root root        0 Oct 20  2010 spooler
-rw-r--r--  1 root root   425752 Jan 17 17:53 syslog
-rw-r--r--  1 root root    15501 Jan 17 17:31 wpa_supplicant.log
-rw-r--r--  1 root root   481152 Jan 17 16:52 wtmp
root@porteus:/home/guest# 

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#12 by fanthom » 18 Jan 2014, 08:12

please run 'logrotate /etc/logrotate.conf' manually and check if the job is done.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#13 by Ed_P » 18 Jan 2014, 17:59

It's certainly doing something.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# ls -al /var/log
total 4568
drwxr-xr-x 31 root root      320 Jan 18 12:49 ./
drwxr-xr-x 32 root root      160 Jan 18 12:49 ../
drwxr-xr-x  2 root root       60 Jan 18 12:49 ConsoleKit/
-rw-r--r--  1 root root    41983 Jan 18 12:49 Xorg.0.log
-rw-r--r--  1 root root    46032 Jan 17 18:07 Xorg.0.log.old
-rw-r--r--  1 root root    42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest   42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root        0 May 31  2013 btmp
-rw-r--r--  1 root root     3663 Jan 18 12:49 cron
-rw-r--r--  1 root root   748142 Jan 18 12:49 debug
-rw-r--r--  1 root root    43220 Jan 18 12:49 dmesg
-rw-r--r--  1 root root        0 Sep 13  2012 faillog
-rw-r--r--  1 root root       11 Dec 30 01:09 internet
-rw-r--r--  1 root root   292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root        0 Oct 20  2010 maillog
-rw-r--r--  1 root root  2367160 Jan 18 12:50 messages
drwxr-xr-x  2 root root        3 May 16  2001 nfsd/
drwxr-xr-x  2 root root      113 Jul 19  2013 packages/
-rw-r--r--  1 root root     2050 Jan 18 12:49 pm-powersave.log
-rw-r--r--  1 root root     6583 Jan 17 18:05 pm-suspend.log
-rw-r--r--  1 root root      847 Jan 18 12:49 porteus-livedbg
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root        3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root        3 May  3  2012 scripts/
-rw-r--r--  1 root root    29643 Jan 18 12:53 secure
drwxr-xr-x  4 root root       26 Jan  4  2012 setup/
-rw-r--r--  1 root root     2627 Jan 18 12:49 slim.log
-rw-r--r--  1 root root        0 Oct 20  2010 spooler
-rw-r--r--  1 root root   441015 Jan 18 12:52 syslog
-rw-r--r--  1 root root    16703 Jan 18 12:49 wpa_supplicant.log
-rw-r--r--  1 root root   508800 Jan 18 12:49 wtmp
root@porteus:/home/guest# logrotate /etc/logrotate.conf
root@porteus:/home/guest# ls -al /var/log
total 2040
drwxr-xr-x 31 root root     360 Jan 18 12:54 ./
drwxr-xr-x 32 root root     160 Jan 18 12:49 ../
drwxr-xr-x  2 root root      60 Jan 18 12:49 ConsoleKit/
-rw-r--r--  1 root root   41983 Jan 18 12:49 Xorg.0.log
-rw-r--r--  1 root root   46032 Jan 17 18:07 Xorg.0.log.old
-rw-r--r--  1 root root   42764 Dec 30 01:48 Xorg.1.log
-rw-r--r--  1 root guest  42764 Dec 29 02:30 Xorg.1.log.old
-rw-------  1 root root       0 May 31  2013 btmp
-rw-r--r--  1 root root    3663 Jan 18 12:49 cron
-rw-r--r--  1 root root       0 Jan 18 12:54 debug
-rw-r--r--  1 root root   57641 Jan 18 12:49 debug.1.gz
-rw-r--r--  1 root root   43220 Jan 18 12:49 dmesg
-rw-r--r--  1 root root       0 Sep 13  2012 faillog
-rw-r--r--  1 root root      11 Dec 30 01:09 internet
-rw-r--r--  1 root root  292292 Dec 30 00:44 lastlog
-rw-r--r--  1 root root       0 Oct 20  2010 maillog
-rw-r--r--  1 root root      48 Jan 18 12:54 messages
-rw-r--r--  1 root root  461861 Jan 18 12:50 messages.1.gz
drwxr-xr-x  2 root root       3 May 16  2001 nfsd/
drwxr-xr-x  2 root root     113 Jul 19  2013 packages/
-rw-r--r--  1 root root    2050 Jan 18 12:49 pm-powersave.log
-rw-r--r--  1 root root    6583 Jan 17 18:05 pm-suspend.log
-rw-r--r--  1 root root     847 Jan 18 12:49 porteus-livedbg
drwxr-xr-x  2 root root       3 Jan  4  2012 removed_packages/
drwxr-xr-x  2 root root       3 Jan  4  2012 removed_scripts/
drwxr-xr-x  2 root root       3 May  3  2012 scripts/
-rw-r--r--  1 root root   29643 Jan 18 12:53 secure
drwxr-xr-x  4 root root      26 Jan  4  2012 setup/
-rw-r--r--  1 root root    2627 Jan 18 12:49 slim.log
-rw-r--r--  1 root root       0 Oct 20  2010 spooler
-rw-r--r--  1 root root  441015 Jan 18 12:52 syslog
-rw-r--r--  1 root root   16703 Jan 18 12:49 wpa_supplicant.log
-rw-r--r--  1 root root  508800 Jan 18 12:49 wtmp
root@porteus:/home/guest# 
So what happens to the .1.gz files?

Should the wtmp file be added to /etc/logrotate.d/syslog file?

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#14 by fanthom » 18 Jan 2014, 20:05

So what happens to the .1.gz files?
it gets overwritten by new log during next cron run if log specification matches the rules (over 500 KB in size in this case).

Should the wtmp file be added to /etc/logrotate.d/syslog file?
probably - will add it along with /var/log/btmp

found what's wrong with cron: it's daily job is set to run on 4:40 in the morning :)
will change that to some normal hour like 19.30 so it will actually have a chance to run and do the job.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: What Makes save.dat File Grow? There A "Prune" App For I

Post#15 by Ed_P » 18 Jan 2014, 21:10

fanthom wrote:found what's wrong with cron: it's daily job is set to run on 4:40 in the morning :)
will change that to some normal hour like 19.30 so it will actually have a chance to run and do the job.
I recommend it run when booting also. Or when shutting down.

Post Reply