Backing up swarm state in Docker 1.12 (online vs offline backup)

Hi there,

According to https://docs.docker.com/engine/swarm/admin_guide/#/back-up-the-swarm-state backing up a docker swarm cluster is a simple as cp -r /var/lib/docker/swarm/raft /tmp/backup && tar ... && scp ....

Does the backup process need to worry about online vs offline backups? Can I simply cp -r or rsync that folder without worrying about the integrity of the backup? Do I need to disable the swarm cluster to ensure an accurate backup? Finally, can I ensure that the swarm state is consistent at backup time?

Thanks!

Very good question. Wondering the same here!

I open a ticket here: https://github.com/docker/docker.github.io/issues/1072

Cheers!