Scripts to mount a borg backup and scan all the contends of /home/users for old email and import to mailpiler #175
Closed
ediazrod
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On the backup server restore the copy what you want to use.
the uuid must be the same user than connect using sshfs
/programas/scripts/backup_borg/borg-linux64 mount -o uid=1000,gid=1000,allow_other /datos/backup_borg/backup::myservermailbackup-2020-12-31T02:00:03 /mnt/1
form you mailpiler install using root
sshfs [email protected]:/mnt/1 /mnt/correo -o Ciphers=aes128-ctr -o Compression=no -o ServerAliveCountMax=2 -o ServerAliveInterval=15
cd /var/tmp
find /mnt/correo/datos/ClonBorg/home/ -type f -name *servername.com* -exec sh -c 'gzip -dc "{}" | pilerimport -e -' ;
wait a few days and see on the logs how pilerimport injects the mails
After of that you can use another backup...
Beta Was this translation helpful? Give feedback.
All reactions