In details :
My actual situation :
I have 2 nextcloud servers : one at home for my personnal datas and one on a server in a datacenter for my work public datas (I am a math teacher, so it contains lessons, exercices…). All critical datas are on my home server.
New situation :
I bought a new server in my datacenter and I want to migrate both the 2 old servers on this new one.
But : i don’t want my personnal and critical datas to be readable on this server so :
- firstly i installed my server on an encrypted disk : if the server is powered off, the disk is not readable.
- secondly i want to use the full encryption module with nextcloud : if the server is online and compromised (disk encrypted but readable), the critical datas are still not readable.
My problem :
I could just install 2 nextcloud instances on the new server with encryption enabled and sync my directories using nextcloud client with these new instances but… my connexion is very slow and it could take a mounth or more time… and my work datas are on the same datacenter so it would be so much faster to copy them directly from one server to the other.
I could directly copy datas from old servers to the new one and sync database but : data copied that way won’t be encrypted, only new datas would be.
What i am looking for :
A command line to copy file and encrypt then with Nextcloud users keys and sync database.
That way, i could copy datas directly from old servers to the new one without using the nextcloud client and i would save a lot of time.
Am i more understandable ? (sorry for my english, i’m french)