C2: Insanely Affordable x86-64 Servers
-
That will be awesome! How do you backup containers?
-
@aaronstuder said:
That will be awesome! How do you backup containers?
Just tar the container folder. You can also do file level backups of the containers. LXC by default stores everything in
/var/lib/lxc/
so if you want to restore a file tocontainer1
you could just cp it back to/var/lib/lxc/container1/root/pathtofolder/
-
@johnhooks Can I do that with the containers running?
-
Can I run different Distros in containers or just the same as the host?
-
@aaronstuder said:
@johnhooks Can I do that with the containers running?
Which file level restore or using tar?
-
@aaronstuder said:
Can I run different Distros in containers or just the same as the host?
You can run different distros. But I think you need to match systemd and init between host and container though.
-
@johnhooks tar. I assume rsync would work too?
-
@aaronstuder said:
@johnhooks tar. I assume rsync would work too?
I think you have to stop the container to do that. Ya rsync works also.
-
@johnhooks said:
You can run different distros. But I think you need to match systemd and init between host and container though.
How would check that? I am a huge CentOS7 fan
-
@johnhooks should be super easy to write a script to stop containers, tar them and start them again.
-
@aaronstuder said:
@johnhooks said:
You can run different distros. But I think you need to match systemd and init between host and container though.
How would check that? I am a huge CentOS7 fan
I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).
-
@aaronstuder said:
@johnhooks should be super easy to write a script to stop containers, tar them and start them again.
ya. I use Ansible, but you can script it also.
-
@johnhooks said
I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).
I will be using Ubuntu as the host. CentOS7 as the guest
-
@aaronstuder said:
@johnhooks said
I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).
I will be using Ubuntu as the host. CentOS7 as the guest
Ya that works also
-
@johnhooks said
ya. I use Ansible, but you can script it also.
I need to learn Ansible
-
@aaronstuder said:
@johnhooks said
ya. I use Ansible, but you can script it also.
I need to learn Ansible
Ya it's awesome. Makes everything so much easier.
-
@aaronstuder said:
@johnhooks said:
You can run different distros. But I think you need to match systemd and init between host and container though.
How would check that? I am a huge CentOS7 fan
You could always start with CentOS 7 for containers rather than building them on Ubuntu.
-
@scottalanmiller Scaleway only offers Ubuntu
-
Would you use Scaleway?
For a 2G VM on Vultr I can get 32GB on Scaleway.....
-
@aaronstuder said:
Would you use Scaleway?
For a 2G VM on Vultr I can get 32GB on Scaleway.....
I would start out with their starter server for $2.99 a month and see how the interface and reliability is before you commit to a big project.