Greetings all;
From time to time, kmail does some expiry housekeeping duringthe nightly amanda run, and the disappearing files make amanda spam the logs as follows:
STRANGE DUMP DETAILS: /-- coyote /home/gene/Mail lev 0 STRANGE sendbackup: info BACKUP=APPLICATION sendbackup: info APPLICATION=amgtar sendbackup: info RECOVER_CMD=/bin/gzip -dc |/usr/local/libexec/amanda/application/amgtar restore [./file-to-restore]+ sendbackup: info COMPRESS_SUFFIX=.gz sendbackup: info end ? /bin/tar: ./amanda-stf/cur/1608262193.22812.fKbeO: File removed before we read it ? /bin/tar: ./amanda-stf/cur/1608264371.22812.1lf78: File removed before we read it ? /bin/tar: ./amanda-stf/cur/1608264614.22812.zFEou: File removed before we read it | Total bytes written: 6440765440 (6.0GiB, 17MiB/s) sendbackup: size 6289810 sendbackup: native-CRC 9c31bc0e:6440765440 sendbackup: client-CRC 812cf14e:3061318853 sendbackup: end --------
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Thanks all;
Cheers, Gene Heskett
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year - but I need to do the calculations first and probably add/replace some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
BTW kmail does not know dbus (AFAIK)
regards
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Friday 18 of December 2020 10:35:09 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year - but I need to do the calculations first and probably add/replace some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
Snapshot is a good option. Using LVM is a useful thing :)
BTW kmail does not know dbus (AFAIK)
KMail does not have dbus, but uses DCOP.
You can use kdcop to explore DCOP calling options. For kmail I see there KMailIface and pauseBackgroundJobs / resumeBackgroundJobs functions that look like they might be useful for you.
regards
Cheers
On Friday 18 December 2020 04:48:22 Slávek Banko via tde-users wrote:
On Friday 18 of December 2020 10:35:09 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year
- but I need to do the calculations first and probably add/replace
some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
Snapshot is a good option. Using LVM is a useful thing :)
BTW kmail does not know dbus (AFAIK)
KMail does not have dbus, but uses DCOP.
You can use kdcop to explore DCOP calling options. For kmail I see there KMailIface and pauseBackgroundJobs / resumeBackgroundJobs functions that look like they might be useful for you.
Yes, that sounds very usefull, thank you Slávek.
But since the amanda scripts all runs uid:gid as amanda:backup, but all my mail stuff runs as me, can dcop reach across those ownership changes and get that done? Or will I have to put that in the root crontab that does it all?
regards
Cheers
Cheers, Gene Heskett
On Friday 18 of December 2020 13:58:45 Gene Heskett via tde-users wrote:
On Friday 18 December 2020 04:48:22 Slávek Banko via tde-users wrote:
On Friday 18 of December 2020 10:35:09 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year
- but I need to do the calculations first and probably add/replace
some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
Snapshot is a good option. Using LVM is a useful thing :)
BTW kmail does not know dbus (AFAIK)
KMail does not have dbus, but uses DCOP.
You can use kdcop to explore DCOP calling options. For kmail I see there KMailIface and pauseBackgroundJobs / resumeBackgroundJobs functions that look like they might be useful for you.
Yes, that sounds very usefull, thank you Slávek.
But since the amanda scripts all runs uid:gid as amanda:backup, but all my mail stuff runs as me, can dcop reach across those ownership changes and get that done? Or will I have to put that in the root crontab that does it all?
Yes, there is a problem that the backup runs under a different user than the one whose dcop server you need to communicate with. This continues in the thread:
Amrecover hangs after restore https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
regards
Cheers
Cheers, Gene Heskett
Cheers
On Saturday 19 December 2020 12:48:00 Slávek Banko via tde-users wrote:
On Friday 18 of December 2020 13:58:45 Gene Heskett via tde-users
wrote:
On Friday 18 December 2020 04:48:22 Slávek Banko via tde-users wrote:
On Friday 18 of December 2020 10:35:09 deloptes via tde-users
wrote:
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year - but I need to do the calculations first and probably add/replace some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
Snapshot is a good option. Using LVM is a useful thing :)
BTW kmail does not know dbus (AFAIK)
KMail does not have dbus, but uses DCOP.
You can use kdcop to explore DCOP calling options. For kmail I see there KMailIface and pauseBackgroundJobs / resumeBackgroundJobs functions that look like they might be useful for you.
Yes, that sounds very usefull, thank you Slávek.
But since the amanda scripts all runs uid:gid as amanda:backup, but all my mail stuff runs as me, can dcop reach across those ownership changes and get that done? Or will I have to put that in the root crontab that does it all?
Yes, there is a problem that the backup runs under a different user than the one whose dcop server you need to communicate with. This continues in the thread:
Amrecover hangs after restore https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinity desktop.org/thread/EBS42BSZZZ2RAACOBB32W7LK5DUGQBCP/
Which does little to actually instruct me how to proceed. And /home/amanda/ICEauthority is an empty file. -rw------- 1 amanda backup 0 Mar 12 2008 .ICEauthority created in 2008, while /home/gene/.ICEauthority is -rw------- 1 gene gene 4300 Dec 3 01:41 /home/gene/.ICEauthority not an empty file. Must be 2 dozen MIT_MAGIC-COOKIES in it. And I'm in way over my head...
regards
Cheers
Cheers, Gene Heskett
Cheers
Cheers, Gene Heskett
Gene Heskett via tde-users wrote:
Which does little to actually instruct me how to proceed. And /home/amanda/ICEauthority is an empty file. -rw------- 1 amanda backup 0 Mar 12 2008 .ICEauthority created in 2008, while /home/gene/.ICEauthority is -rw------- 1 gene gene 4300 Dec 3 01:41 /home/gene/.ICEauthority not an empty file. Must be 2 dozen MIT_MAGIC-COOKIES in it. And I'm in way over my head...
Gene, the way might be too steep to climb. I had a command at hand that helped me execute application from different user, but it was regarding .Xauthority.
What you are looking into is the .ICEauthority as described briefly here
The Inter-Client Exchange (ICE) Protocol implemented by the Inter-Client Exchange Library for direct communication between X11 clients uses the same MIT-MAGIC-COOKIE-1 authentication method, but has its own iceauth utility for accessing its own .ICEauthority file, the location of which can be overridden with the environment variable ICEAUTHORITY. ICE is used, for example, by DCOP and the X Session Management protocol (XSMP).
https://en.wikipedia.org/wiki/X_Window_authorization
I wonder if you can just stop the process like kill -STOP <pid> and then resume it after you finish kill -CONT <pid>
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Saturday 19 December 2020 17:13:21 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
Which does little to actually instruct me how to proceed. And /home/amanda/ICEauthority is an empty file. -rw------- 1 amanda backup 0 Mar 12 2008 .ICEauthority created in 2008, while /home/gene/.ICEauthority is -rw------- 1 gene gene 4300 Dec 3 01:41 /home/gene/.ICEauthority not an empty file. Must be 2 dozen MIT_MAGIC-COOKIES in it. And I'm in way over my head...
Gene, the way might be too steep to climb. I had a command at hand that helped me execute application from different user, but it was regarding .Xauthority.
What you are looking into is the .ICEauthority as described briefly here
The Inter-Client Exchange (ICE) Protocol implemented by the Inter-Client Exchange Library for direct communication between X11 clients uses the same MIT-MAGIC-COOKIE-1 authentication method, but has its own iceauth utility for accessing its own .ICEauthority file, the location of which can be overridden with the environment variable ICEAUTHORITY. ICE is used, for example, by DCOP and the X Session Management protocol (XSMP).
This ^^^^^^ is where its discussed? I'll look into it. Thanks.
I wonder if you can just stop the process like kill -STOP <pid> and then resume it after you finish kill -CONT <pid>
That would likely freeze it all. Not too desirable.
Would the MIT-MAGIC-COOKIE be different for a different user, or is there a way to cause amanda's ./ICEauthority to be updared with a valid cookie?
Cheers, Gene Heskett
Gene Heskett via tde-users wrote:
This ^^^^^^ is where its discussed? I'll look into it. Thanks.
I wonder if you can just stop the process like kill -STOP <pid> and then resume it after you finish kill -CONT <pid>
That would likely freeze it all. Not too desirable.
Would the MIT-MAGIC-COOKIE be different for a different user, or is there a way to cause amanda's ./ICEauthority to be updared with a valid cookie?
I don't know. Some years ago we were supposed to setup a system by tunneling X session via SSH. However AFAIR, we could use normal user to tunnel X and had to execute the command via GUI run by root. For this we extract the cookie from users session and import it into roots .Xauthority file. I am really not sure anymore - it is about 7-10y ago. I would expect the ICE to work in a similar way. Something like
iceauth extract iceauth.out protoname=DCOP [whatever]
and in the other user
iceauth merge iceauth.out
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Saturday 19 December 2020 19:50:34 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
This ^^^^^^ is where its discussed? I'll look into it. Thanks.
I wonder if you can just stop the process like kill -STOP <pid> and then resume it after you finish kill -CONT <pid>
That would likely freeze it all. Not too desirable.
Would the MIT-MAGIC-COOKIE be different for a different user, or is there a way to cause amanda's ./ICEauthority to be updared with a valid cookie?
I don't know. Some years ago we were supposed to setup a system by tunneling X session via SSH. However AFAIR, we could use normal user to tunnel X and had to execute the command via GUI run by root. For this we extract the cookie from users session and import it into roots .Xauthority file. I am really not sure anymore - it is about 7-10y ago. I would expect the ICE to work in a similar way. Something like
iceauth extract iceauth.out protoname=DCOP [whatever]
and in the other user
iceauth merge iceauth.out
Did that, worked but didn't fix it. and had to undo the changes to sudoers because it was a syntax error. Fortunately I still had root sessions open or I'd have been up that famous s--- creek. But with amanda's ICEauthority merged, I straced the command, getting about 1000 attempts to open access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
Then: open("/lib/x86_64-linux-gnu/libbsd.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3203\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=84200, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fada6dbe000 mmap(NULL, 2183248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fada11cf000 mprotect(0x7fada11e2000, 2097152, PROT_NONE) = 0 mmap(0x7fada13e2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x13000) = 0x7fada13e2000 mmap(0x7fada13e4000, 80, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x7fada13e4000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340 \0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=31744, ...}) = 0 mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fada0fc7000 mprotect(0x7fada0fce000, 2093056, PROT_NONE) = 0 mmap(0x7fada11cd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x6000) = 0x7fada11cd000 close(3) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fada6dbc000 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fada6db9000 arch_prctl(ARCH_SET_FS, 0x7fada6db9780) = 0 mprotect(0x7fada5233000, 16384, PROT_READ) = 0 mprotect(0x7fada20a9000, 4096, PROT_READ) = 0 mprotect(0x7fada11cd000, 4096, PROT_READ) = 0 mprotect(0x7fada13e2000, 4096, PROT_READ) = 0 mprotect(0x7fada1e90000, 4096, PROT_READ) = 0 mprotect(0x7fada1c8c000, 4096, PROT_READ) = 0 mprotect(0x7fada4e9c000, 4096, PROT_READ) = 0 mprotect(0x7fada4c74000, 4096, PROT_READ) = 0 mprotect(0x7fada699a000, 4096, PROT_READ) = 0 mprotect(0x7fada15e9000, 4096, PROT_READ) = 0 mprotect(0x7fada185c000, 4096, PROT_READ) = 0 mprotect(0x7fada1a85000, 8192, PROT_READ) = 0 mprotect(0x7fada22c6000, 4096, PROT_READ) = 0 mprotect(0x7fada4a70000, 4096, PROT_READ) = 0 mprotect(0x7fada24d2000, 4096, PROT_READ) = 0 mprotect(0x7fada26e4000, 4096, PROT_READ) = 0 mprotect(0x7fada5756000, 4096, PROT_READ) = 0 mprotect(0x7fada3d0c000, 4096, PROT_READ) = 0 mprotect(0x7fada3f3f000, 4096, PROT_READ) = 0 mprotect(0x7fada298e000, 24576, PROT_READ) = 0 mprotect(0x7fada486a000, 8192, PROT_READ) = 0 mprotect(0x7fada33cc000, 4096, PROT_READ) = 0 mprotect(0x7fada2ba9000, 4096, PROT_READ) = 0 mprotect(0x7fada2dac000, 4096, PROT_READ) = 0 mprotect(0x7fada2fb7000, 4096, PROT_READ) = 0 mprotect(0x7fada31c2000, 4096, PROT_READ) = 0 mprotect(0x7fada35dc000, 4096, PROT_READ) = 0 mprotect(0x7fada3af1000, 4096, PROT_READ) = 0 mprotect(0x7fada37de000, 4096, PROT_READ) = 0 mprotect(0x7fada41aa000, 4096, PROT_READ) = 0 mprotect(0x7fada440e000, 4096, PROT_READ) = 0 mprotect(0x7fada462d000, 4096, PROT_READ) = 0 mprotect(0x7fada5452000, 4096, PROT_READ) = 0 mprotect(0x7fada5aca000, 40960, PROT_READ) = 0 mprotect(0x7fada63e3000, 425984, PROT_READ) = 0 mprotect(0x7fada665e000, 4096, PROT_READ) = 0 mprotect(0x7fada6dfc000, 4096, PROT_READ) = 0 munmap(0x7fada6dcc000, 196147) = 0 set_tid_address(0x7fada6db9a50) = 4421 set_robust_list(0x7fada6db9a60, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7fada1e97bd0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fada1ea30e0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fada1e97c60, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fada1ea30e0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x5603f7ab6000 brk(0x5603f7ad7000) = 0x5603f7ad7000 futex(0x7fada645aa2c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 access("/usr/lib/tqt3/plugins", F_OK) = 0 access("/usr/lib/tqt3/plugins/codecs/.", F_OK) = -1 ENOENT (No such file or directory) fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 14), ...}) = 0 lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 14), ...}) = 0 lseek(1, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 14), ...}) = 0 lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) uname({sysname="Linux", nodename="coyote", ...}) = 0 brk(0x5603f7af8000) = 0x5603f7af8000 open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory) uname({sysname="Linux", nodename="coyote", ...}) = 0 open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "ERROR: Couldn't attach to DCOP s"..., 38ERROR: Couldn't attach to DCOP server!) = 38 write(2, "\n", 1 ) = 1 exit_group(1) = ? +++ exited with 1 +++
And of course it does not exist. Next?
Thanks
Cheers, Gene Heskett
Gene Heskett via tde-users wrote:
open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory) uname({sysname="Linux", nodename="coyote", ...}) = 0 open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory)
This is because amanda does not have a tde session running (and may be no X server/session pointed to) I really don't know Gene.
Why would merge of other users ICEauthority impact SSH? Please do only one change at a time.
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Sunday 20 December 2020 04:19:03 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory) uname({sysname="Linux", nodename="coyote", ...}) = 0 open("/home/amanda/.DCOPserver_coyote__0", O_RDONLY) = -1 ENOENT (No such file or directory)
This is because amanda does not have a tde session running (and may be no X server/session pointed to)
That seems to be a plausible reason as amanda runs in the background, and unless watching the system with htop, or gkrellm, no notice that it has been running is received until the emailed summary arrives.
I really don't know Gene.
Why would merge of other users ICEauthority impact SSH?
I don't think it has.
Please do only one change at a time.
Since I can issue those commands, I am considering writing a monitoring script that runs as me from a crontab listing, from 5 minutes before amanda is to start, which samples the process list at minute intervals, issues that command and tallies it in the env on finding amanda in the list, then goes away, then say 40 minutes later starts another script to undo it, doing that sampling at 5 minute intervals and when amanda disappears for 2 samples in a row, restore the backgroundjobs, nuke the env var and goes away till tomorrow.
Where there is a will, there generally is a way. But I'll have to relearn bash as all this stuff has been running, unmolested by me for about 16 years now.
And I'm getting to that age where shorter term memory is a problem, too easily distracted by the "oh look, a pony syndrome". That and too many irons in the fire. I went to the garage yesterday to see about packaging up the electronics to run a new servo drive I'd just built on my bigger square posted milling machine and found it would be easier and more neatly done if I bought a box off fleabay big enough to hide it all. So I came back in and did find a suitable one & bought it. But shipping will be around 10 days even from US suppliers to whose door I can drive to in 2 days.
Then the bearings in the 6040's (a midsized gantry style mill) spindle motor, a 24,000 rpm motor, are about shot at 40 or so hours running time because it was a BBLB motor with roller skate bearings I can buy a 10 pack of for $4.50 on fleabay, and I've already a quality replacement in a box ready to be carried to the garage and installed.
Just gotta get off my duff and do it. And theres nobody here to do it but me.
That will replace a 1 horse water cooled motor with a 3 horse running on the same cooling water, and its 110 volt wall powered VFD that makes the lights flicker with a 250volt 3 horse that runs off its own circuit breaker. Most of the wiring is already done, I'm a CET and can teach electricians how to do it. And have. One of my pet peeves is following a so-called electrician around and fixing his mistakes. I have been amazed at the card carrying journeyman's mistakes I've encountered and fixed since 1977. The first one was a fire starter in the studio light wiring of a tv station in Farmington NM that no longer exists. Not even the building.
I'll tell you about it sometime. My 86 year trip thru life has been an interesting ride. To me at least.
Take care and stay well folks.
Cheers, Gene Heskett
Gene Heskett via tde-users wrote:
Where there is a will, there generally is a way. But I'll have to relearn bash as all this stuff has been running, unmolested by me for about 16 years now.
Thinking over my personal backup, based on professional experience with some backup systems. I came to the conclusion (for me) it would be better to use snapshots as the pros do, but here are also too many tasks in the pipline preventing any action. This is why I recommended to think over and may be do the thing the proper way. Of course building a tunnel through the mountain costs more (planning, work and money) but at the end you have a high way you'll safely use for a long long time.
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Friday 18 December 2020 04:35:09 deloptes via tde-users wrote:
Gene Heskett via tde-users wrote:
Is there a dbus command my amanda script can send to tell amanda to hold off expiry till amanda is done?
Might be over an hour of expiry holdoff needed at times.
Hi Gene, don't know about Amanda and dbus, but the best way to do a backup (nowdays) is to make a snapshot of the LVM and do the backup from the snapshot. You have to have some spare space - for the snapshot to work. I am planning myself to start doing this at home next year - but I need to do the calculations first and probably add/replace some disks. I am excited of how this works in production (the backup solution I worked with is proprietary one). It does backup VMs and DBs while they are operating and total disk space backuped is in TBs. Keep in mind: (as we usually say) it is not only the making of the backup, but the ability to restore.
BTW kmail does not know dbus (AFAIK)
regards
you are correct, it switched to dcop long bedfore the tde fork.
I've been using it to synchronize kmail to incoming mail for a very loooonngg time, with this script:
#!/bin/bash # set -x # this was a test, was /bin/sh above, but /bin/sh is a softlink to /bin/dash # REQUIRES your distros inotify-tools package, assume kde/kmail in use # but might be adaptable to other agents too # requires a ~/log directory, so mkdir it before running it # you will also need to either do the housekeeping of this file, or # figure out how to make logrotate do it for you. # which I did, long ago...
WatchDir=/var/spool/mail/
# Setup temporary log Log=mail.log # put it in my home dir like fetchmail and procmail Mlog=~/log # in case it doesn't exist, make it touch ${Mlog}/${Log} # the command to send over dbus/dcop to make kmail pull the mailfile # in /var/spool/mail
# First set method Method=dcop if [[ ${Method} = 'dbus' ]] then Cmd="/usr/bin/qdbus org.kde.kmail /KMail org.kde.kmail.kmail.checkMail" fi if [[ ${Method} = 'dcop' ]] then # or for dcop, use: Cmd="/opt/trinity/bin/dcop kmail KMailIface checkMail" fi
# Now, do forever while : do sleep 1 if [ $(pidof -s kmail) ] then echo -n "Kmail is running " >>${Mlog}/${Log} date -R >>${Mlog}/${Log} sleep 1 # delay to give kmail a chance to settle in # only start fetchmail once! if [ $(pidof -s fetchmail) ] then sleep 1 echo -n "fetchmail already running " >>${Mlog}/${Log} date -R >>${Mlog}/${Log}
else echo -n "starting fetchmail at " >>${Mlog}/${Log} /usr/local/bin/fetchmail --fetchmailrc /home/gene/.fetchmailrc >>${Mlog}/${Log} & date -R >>${Mlog}/${Log} fi sleep 1 # delay to give kmail a chance to get its dcop/dbus sockets setup? $cmd while [ $(pidof -s kmail) ] do # I've found that stderr needs dumped to /dev/null, so InMail=`/usr/bin/inotifywait -q -e close_write --format %f ${WatchDir}` # 2>&1 >/dev/null # and here it sits until inotifywait exits because of an incoming mail # and time later it will exit, setting $InMail to something, so # recheck to make sure kmail is still about before sending the signal # as dbus/dcop seems to get a tummy ache if there is no receiver
if test "${InMail}" = "gene" then $Cmd # sleep 1 # log it echo -n ${InMail} >>${Mlog}/${Log} echo -n " @ " >>${Mlog}/${Log} date -R >>${Mlog}/${Log} elif test "${InMail}" = "gene-from_linda" then $Cmd # sleep 1 # log it echo -n ${InMail} >>${Mlog}/${Log} echo -n " @ " >>${Mlog}/${Log} date -R >>${Mlog}/${Log} elif test "${InMail}" = "amanda" then $Cmd # sleep 1 # log it echo -n ${InMail} >>${Mlog}/${Log} echo -n " @ " >>${Mlog}/${Log} date -R >>${Mlog}/${Log} fi
done # we don't have a pidof kmail, log that its gone echo -n "Kmails pid is missing - it has stopped ">>${Mlog}/${Log} date -R >>${Mlog}/${Log} # Now, kill fetchmail too, and this is ok to do killall fetchmail # get rid of a waiting inotifywait, but this is not inotifywait instance # sensitive and may kill the one for cocoprint. killall inotifywait fi # and should be back in the outer loop, waiting for a kmail PID done ===============================
fetchmail runs in a 2 minute loop, hands incoming mail off to procmail, which runs it thru quite a few deaths and diversions including clamav, spamassassin, and puts the survivors in /var/spool/mail/$name. inotifywait watch that dir, exists with the $name & this file tells kmail to go get the mail and sort it to where it goes. I'm a lazy old fart, all I have to do is hit the + key to read the next message, if I can help hit the type of reply, when done hit ctrl+return then the + key for the next unread msg. Computers should do the work, that's what they are good at. Make them do all the damned drudgery and mindless crap.
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinity desktop.org
Cheers, Gene Heskett