I configured the server to run a cronjob and run the script that backs up Gitlab.
Gitlab in turn generates the .tar
files in the var/opt/gitlab/backups
The first problem is that to access the above mentioned folder, I have to access it using sudo -i
.
The second is that I need to configure the crontab to synchronize the files from the var/opt/gitlab/backups
folder to the external /media/<user>/usbbackup/
disk.
How do I configure crontab to perform the action described above?