« IT » : différence entre les versions

De PN Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 10 : Ligne 10 :
NB: -avh is for --archive --verbose --human-readable<ref>https://askubuntu.com/a/665918</ref>.
NB: -avh is for --archive --verbose --human-readable<ref>https://askubuntu.com/a/665918</ref>.


== Migration of folders ==
== Migration of folders to a new server ==


rsync -av /root/ root@newicecube.pnzone.net:/root/ --delete
rsync -av /root/ root@newicecube.pnzone.net:/root/ --delete

Version du 4 décembre 2023 à 10:28

Named

Manually updating a Dynamic controlled zone

"If you have to edit the zone files of dynamic zones manually while the DNS server is running, you'll have to freeze the zones with # rndc freeze <myzone> before editing and unfreeze them with # rndc thaw <myzone> after editing. This is because named(8) has internal state information and external journal files attached to dynamic zones that have to be kept in sync with the zone files[1]".

Rsync

To delete files in the target if they disappeared from the source, then add the --delete option to your command. For example:

rsync -avh source/ dest/ --delete
NB: -avh is for --archive --verbose --human-readable[2].

Migration of folders to a new server

rsync -av /root/ root@newicecube.pnzone.net:/root/ --delete

rsync -av /home/ root@newicecube.pnzone.net:/home/ --delete

rsync -av /var/www/ root@newicecube.pnzone.net:/var/www/ --delete

rsync -av /usr/local/www/ root@newicecube.pnzone.net:/usr/local/www/ --delete

rsync -av /usr/local/etc/ root@newicecube.pnzone.net:/usr/local/etc/ --delete

References