diff --git a/docker/container.backup b/docker/container.backup index 6879ef5..9bcb87e 100755 --- a/docker/container.backup +++ b/docker/container.backup @@ -4,9 +4,9 @@ ## Backup data of a Docker container. ## To do that, the script will : ## Try to stop the corresponding systemd unit (or docker if no related service is found) -## Make a archive of the container's data to a backup path -## Clean old backup -## Restart the container service (or docker.service) +## TODO : Make a archive of the container's data to a backup path +## TODO : Clean old backup +## TODO : Restart the container service (or docker.service) # }}} # How-to use {{{ ## First argument should be the absolut path to the container's data. @@ -84,5 +84,8 @@ else [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Service name — Service name of ${ct_name} container to stop : ${ct_service_name} ." fi # }}} +# Stop the container service {{{ +systemctl stop "${ct_service_name}" +# }}} exit 0