Important Moderation Notice

This community is currently under full moderation, meaning all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you will receive an email outlining the reason(s). We have implemented full moderation to control spam. Thank you for your patience and participation.

Related Posts

Tips on Posting.!

Welcome to Versa Community Here are a fe..
Read More

How to view default periodic backup in Versa Director ?

Hello By default Versa Director takes pe..
Read More

How to view default periodic backup in Versa Director ?

Hello,

By default, Versa Director takes periodic backup every day at 06:25 AM.

This setting is defined under the file /etc/crontab, at daily cron.

admin@Versa-Director-1:/etc$ cat crontab

# /etc/crontab: system-wide crontab

# Unlike any other crontab you don't have to run the `crontab'

# command to install the new version when you edit this file

# and files in /etc/cron.d. These files also have username fields,

# that none of the other crontabs do.

SHELL=/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command

17 * * * * root  cd / && run-parts --report /etc/cron.hourly

25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )

52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

#

The file /etc/cron.daily/vnms-cron-backup describes which types of backup is taken :

admin@Versa-Director-1:/etc/cron.daily$ sudo cat vnms-cron-backup

[sudo] password for admin:

#!/bin/bash

# To be run by cron - takes CDB backup

/opt/versa/vnms/scripts/vnms-backup.sh --backup include-package-dir false backups-dir /var/versa/backups system-triggered true create-local-backup true

It's possible to view user configured crontab with the command

admin@Versa-Director-1:/etc/cron.daily$ crontab -l -u root

Maksym

Comments

  • Hi Paul,

    Nice note, Let me also add, that Director backups are being created in following folders:

    /var/versa/backups

    /var/versa/local-backups (if "create-local-backup true" option is added in the script above)

    In HA pair /var/versa/backups has always backups of Master Director on both Director nodes. If you're seeking specifically for Slave Director backup, then you may find it in /var/versa/local-backups folder.


    And when talking about Director backups, it's very important to remember to remove old backups after some time, otherwise they may easily fill whole disk space. There's another cron script used for it, in which you can edit retention period:

    # cat /etc/cron.daily/vnms-cron-purge-pkg

    #!/bin/bash

    find /var/versa/backups -type f -mtime +30 -delete

    find /var/versa/local-backups -type f -mtime +30 -delete

    Here "+30" specifies for how many days backups will be stored.


    Also it's a good practice to upload Director backups to some

Sign In or Register to comment.
/* */