Hello,

iRedMail by default runs sogo-tool backup.

if you have cron 'backup_sogo.sh' running

From: /var/vmail/backup/backup_sogo.sh
```
# Where to store backup copies.
export BACKUP_ROOTDIR="/var/vmail/backup"

# Define, check, create directories.
export BACKUP_DIR="${BACKUP_ROOTDIR}/sogo/${YEAR}/${MONTH}/${DAY}"

# Backup
echo "* Backup all users' data under ${BACKUP_DIR}"
${CMD_SOGO_TOOL} backup ${BACKUP_DIR} ALL
```

Regards
Christian M. Jensen


Den 08-09-2021 kl. 09:52 skrev Stefano Leva ([email protected]):
Hi,
no i don't using sogo tools, at the moment.
So i can restore server on a test enviroment.
DO you know which log files i can can check for calendar's activity  also (i checked sogo.log, but couldn't see from which ip the changes were made)? I'd like to know when event was deleted and from who.

Thank you.
Cheers,
Stefano



Il giorno mar 7 set 2021 alle ore 17:54 Christian Mack <[email protected] <mailto:[email protected]>> ha scritto:

    Hello

    Am 07.09.21 um 17:27 schrieb Stefano Leva ([email protected]
    <mailto:[email protected]>):
    > Hello,
    > i'd like to know how i can restore a single calendar's events
    that was
    > accidentally deleted.
    > Do you know also, where the ics file are stored. We're using
    Sogo with
    > iredmail pro.
    >

    Do you use sogo-tool backups?
    If yes, you just have to list the available calendars for that
    user with
    sogo-tool restore -l ~sogo/path-with-backups/ USERNAME

    You will get something like:
    <0x0x55bd0bf8f610[SOGoCache]> Using host(s) 'local-databasehost' as
    server(s)
    2021-09-07 17:43:44.414 sogo-tool[21867:21867] Restorable folders:
    2021-09-07 17:43:44.415 sogo-tool[21867:21867]
    Calendar/55D4-57CD2C80-47-7C164080 (Superduper)
    2021-09-07 17:43:44.415 sogo-tool[21867:21867]
    Calendar/c81a287ec3c4719de08fae31306f851d (Pickwick)
    2021-09-07 17:43:44.415 sogo-tool[21867:21867]  Calendar/personal
    (Persönlicher Kalender)
    [...]

    If you want to restore calendar named "Pickwick" use:
    sogo-tool restore -f Calendar/c81a287ec3c4719de08fae31306f851d
    ~sogo/path-with-backups/ USERNAME

    Option -f means restore all events and series not already in that
    calendar.
    If you want to reset the calendar to the state of the backup use
    option -F.

    If you don't use sogo-tool backups, you have to restore at least the
    complete database into another database server and extraxt the needed
    data from there.
    You could for example use your SOGo test server and do a sogo-tool
    backup for that user after restore of the complete database.
    Transfer that users backup to the production machine and restore as
    shown above.


    Kind regards,
    Christian Mack

-- Christian Mack
    Universität Konstanz
    Kommunikations-, Informations-, Medienzentrum (KIM)
    Abteilung IT-Dienste Forschung und Lehre
    78457 Konstanz
    +49 7531 88-4416



--
*Stefano Leva*
IT Service
Mds net Srl
Tel: +39024541511




*
MDS net S.r.l.*
Sede Operativa: Via Franchi Maggi, 50 20089 Quinto de Stampi Rozzano (MI)
Sede Legale: Via Domenico Scarlatti, 7 - 20124 Milano
Partita Iva 11892610152
Tel. +39024541511
www.mdsnet.eu <http://www.mdsnet.eu>
www.mdshospitality.it <http://www.mdshospitality.it>

Nota di riservatezza: il presente messaggio, corredato dei relativi allegati, può contenere informazioni da considerarsi strettamente riservate ed è destinato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo, divulgarlo, distribuirlo a persone diverse dal destinatario è severamente proibito ed è pregato di rinviarlo immediatamente al mittente distruggendo l'originale. Grazie.


Confidentiality notice: this message, together with its annexes, could contain information to be deemed strictly confidential and is destined only to the addressee(s) identified above who only may use, copy and, under his/their responsibility, further disseminate it. If anyone received this message by mistake or reads it without entitlement is forewarned that keeping, copying, disseminating or distributing this message to persons other than the addressee(s) is strictly forbidden and is asked to transmit it immediately to the sender and to erase the original message received. Thank you.


--
[email protected]
https://inverse.ca/sogo/lists

--
Hilsen / Regards
Christian M. Jensen

--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to