User Tools

Site Tools


email:archive_old_emails

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

email:archive_old_emails [2017/03/09 15:46] – created peteremail:archive_old_emails [2019/11/27 21:46] (current) – removed peter
Line 1: Line 1:
-====== Email - Archive old emails ====== 
  
-To archive old emails, for instance those emails older than 2 years: 
- 
-<code bash> 
-(CD current/ && find . -mtime +732 -print0) | rsync -ag –remove-source-files –files-from=- –from0 ./current_maildirs_location/ ./archive_maildirs_location/ 
-</code> 
- 
- 
-This will recursively go through all directories in the current_maildirs_location, find files older than 2 years and move them into the  archive_maildirs_location, preserving the directory structures. 
email/archive_old_emails.1489074397.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki