Skip to content

[sonic_installer] preserve the backup file/directories structure, attributes etc#410

Merged
lguohan merged 1 commit intosonic-net:masterfrom
zhenggen-xu:config-backup
Dec 12, 2018
Merged

[sonic_installer] preserve the backup file/directories structure, attributes etc#410
lguohan merged 1 commit intosonic-net:masterfrom
zhenggen-xu:config-backup

Conversation

@zhenggen-xu
Copy link
Copy Markdown
Collaborator

Signed-off-by: Zhenggen Xu [email protected]

- What I did
preserve the file/directories structure, attributes etc during backup.

This is needed for example FRR configuration under /etc/sonic/frr might not be under root ownership. with the old backup method, the ownership etc will be lost.

- How I did it
use "cp -ar" instead of "cp -r"

- How to verify it
/etc/sonic/frr is under admin:admin, when it backed up, the structure and attributes were preserved.

-->

@lguohan lguohan merged commit fda7742 into sonic-net:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants