


To help conserve disk space, delete older system images. On internal and external hard drives, older system images will be deleted when the drive runs out of space. You can keep several versions of system images. Keeping different versions of system images If you save the system image on a hard drive or USB flash drive, it must be formatted to use the NTFS file system. If you’d like to know how to manage your Docker infrastructure resources get the best out of them for your business, we’d be happy to talk to you.Note: To create a system image of a drive, it must be formatted to use the NTFS file system. Backup restore should be performed with utmost caution, or else you may end up destroying containers wrongly.īobcares helps businesses minimize downtime with our backup management services, which range from formulating the backup plan to restoring the data within no time. Backups should be routinely tested and verified for adequacy.ĥ. Backups should include all relevant information such as the registry data and config files too.Ĥ. Backups should be rotated regularly or moved to another storage to avoid ‘disk full’ errors.ģ. Backups should be properly named for identification and easy restore.Ģ. Here are a few points to keep in mind during backups.ġ. Today we saw how to perform docker backup and restore operations. It is also possible to restore the data to the existing container. You’ll get a new container with the data restored from the backup. Next step is to untar the backup file created, to the new container`s data volume: docker run -rm -volumes-from new-container-name -v $(pwd):/backup ubuntu bash -c "cd /data-directory & tar xvf /backup/backup.tar -strip 1" To restore a container using the backup of data volumes taken, first create a new container by providing data volume and container names: docker run -v /data-directory -name new-container-name ubuntu /bin/bash This backup files were later copied over to external server for secure storage, using our custom scripts for regular backups.

:~# ls -lah backup.tar -rw-r-r- 1 root root 8.6G Oct 25 14:46 backup.tar The newly created container would be deleted and you’d be left with the backup file for the container. This command created a new container from the existing container and its data volume was backed up to the file ‘backup.tar’ inside backup directory. We executed this command to generate a backup of the container ‘ifs_wordpress_1’ into ‘backup.tar’ file successfully:ĭocker run –rm –volumes-from ifs_wordpress_1 -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /var/www/html Identify the destination directory for the container
