How can I copy a folder without alternating their original dates of creation?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I found an old archive filled with old folders on my pc.
I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation
command-line
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
I found an old archive filled with old folders on my pc.
I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation
command-line
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I found an old archive filled with old folders on my pc.
I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation
command-line
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I found an old archive filled with old folders on my pc.
I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation
command-line
command-line
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 41 mins ago
MelanieDeschene
111
111
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
Read man cp
, and, in addition to the --recursive
switch use one of:
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible
additional attributes: context, links, xattr, all
add a comment |Â
up vote
2
down vote
sudo cp -rp /home/my_home /media/backup/my_home
orsudo cp -a /home/my_home /media/backup/my_home
This should do it.
-r is recursive
-p is preserve-mode
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Read man cp
, and, in addition to the --recursive
switch use one of:
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible
additional attributes: context, links, xattr, all
add a comment |Â
up vote
3
down vote
Read man cp
, and, in addition to the --recursive
switch use one of:
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible
additional attributes: context, links, xattr, all
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Read man cp
, and, in addition to the --recursive
switch use one of:
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible
additional attributes: context, links, xattr, all
Read man cp
, and, in addition to the --recursive
switch use one of:
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible
additional attributes: context, links, xattr, all
answered 21 mins ago
waltinator
21k74168
21k74168
add a comment |Â
add a comment |Â
up vote
2
down vote
sudo cp -rp /home/my_home /media/backup/my_home
orsudo cp -a /home/my_home /media/backup/my_home
This should do it.
-r is recursive
-p is preserve-mode
add a comment |Â
up vote
2
down vote
sudo cp -rp /home/my_home /media/backup/my_home
orsudo cp -a /home/my_home /media/backup/my_home
This should do it.
-r is recursive
-p is preserve-mode
add a comment |Â
up vote
2
down vote
up vote
2
down vote
sudo cp -rp /home/my_home /media/backup/my_home
orsudo cp -a /home/my_home /media/backup/my_home
This should do it.
-r is recursive
-p is preserve-mode
sudo cp -rp /home/my_home /media/backup/my_home
orsudo cp -a /home/my_home /media/backup/my_home
This should do it.
-r is recursive
-p is preserve-mode
answered 20 mins ago
Lewis Smith
867
867
add a comment |Â
add a comment |Â
MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.
MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.
MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.
MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1085231%2fhow-can-i-copy-a-folder-without-alternating-their-original-dates-of-creation%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password