Re: centos7 tmpfiles.d deleted outdate files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Jonathan Billings,


the `age` can't apply to 'r', only would apply to 'd', 'D', 'x', 'X', etc

"The age field only applies to lines starting with |d|, |D|, |v|, |q|, |Q|, |C|, |x| and |X|. If omitted or set to "|-|", no automatic clean-up is done."

so, there have good idea if I only want to delete the specific files not all files in that dir? thx.


On 2016年05月26日 20:54, Jonathan Billings wrote:
Boxbe <https://www.boxbe.com/overview> This message is eligible for Automatic Cleanup! (billings@xxxxxxxxxx) Add cleanup rule <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DIHIC9p2jvtlLIfUym1h5cJ2bV47JU5xUSAS8hXJ6s5Y%253D%26token%3DQxrt0MFjvrbNQUv1XU7LlnUJYHBN9V92vmpaAZ9KkbO93DVkWDOu6pxjzLzV9I5d0WOIxZ6EBVn85CUoMMtN7okx0kLJV%252F7xJVwVpgcPoTZZVw8A7aTXuqXUBbLsuh%252FgEAiBRqTXvms%253D&tc_serial=25540750649&tc_rand=828171377&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> | More info <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=25540750649&tc_rand=828171377&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>


On Thu, May 26, 2016 at 03:03:25PM +0800, Qiang Chen wrote:
Would some one help me for this question? thanks very much.
I would suggest reading the tmpfiles.d man page.

Use 'd' for the directory, and 'r' for the files you want to remove,
including the age.  Something like 'r /path/* - - - 10s'.


--
Best Regards,
Chen, Qiang

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux