Robocopy /fat option
I'm trying to copy server files to sharepoint and there are a lot of files and folders that have full sentences as names and as such, when I try to copy these files into the sync folder on the server I get the error saying the path is too long. I tried using robocopy to see if it would bypass the error and copy the files anyway but there are still a lot of file that wont copy.
My question is how can I use the /fat option to only copy the files that are too long and not the files are that are fine. I don't want to end up with double the files (one in fat and one not) for the files already copied.
robocopy
add a comment |
I'm trying to copy server files to sharepoint and there are a lot of files and folders that have full sentences as names and as such, when I try to copy these files into the sync folder on the server I get the error saying the path is too long. I tried using robocopy to see if it would bypass the error and copy the files anyway but there are still a lot of file that wont copy.
My question is how can I use the /fat option to only copy the files that are too long and not the files are that are fine. I don't want to end up with double the files (one in fat and one not) for the files already copied.
robocopy
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17
add a comment |
I'm trying to copy server files to sharepoint and there are a lot of files and folders that have full sentences as names and as such, when I try to copy these files into the sync folder on the server I get the error saying the path is too long. I tried using robocopy to see if it would bypass the error and copy the files anyway but there are still a lot of file that wont copy.
My question is how can I use the /fat option to only copy the files that are too long and not the files are that are fine. I don't want to end up with double the files (one in fat and one not) for the files already copied.
robocopy
I'm trying to copy server files to sharepoint and there are a lot of files and folders that have full sentences as names and as such, when I try to copy these files into the sync folder on the server I get the error saying the path is too long. I tried using robocopy to see if it would bypass the error and copy the files anyway but there are still a lot of file that wont copy.
My question is how can I use the /fat option to only copy the files that are too long and not the files are that are fine. I don't want to end up with double the files (one in fat and one not) for the files already copied.
robocopy
robocopy
asked Sep 26 '18 at 22:56
XanderXIVXanderXIV
61
61
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17
add a comment |
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17
add a comment |
1 Answer
1
active
oldest
votes
I just try do same process to backup all company files (1,17TB) to company OneDrive a i use this command:
@echo off
SET Today=%Date:~8,2%%Date:~3,2%%Date:~0,2%
net use a: \BACKUP_SERVERBackup
chcp 1250
Robocopy D: "A:OneDrive - Company" /A-:SH /R:0 /MIR /XF ~$*.* /XD "D:$RECYCLE.BIN" "D:System Volume Information" "D:FTP" "D:Scan" /NDL /NP /LOG+:"C:UsersrootDocumentsLOG%Today%.txt"
And i have really long ways and without any problem.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1361707%2frobocopy-fat-option%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I just try do same process to backup all company files (1,17TB) to company OneDrive a i use this command:
@echo off
SET Today=%Date:~8,2%%Date:~3,2%%Date:~0,2%
net use a: \BACKUP_SERVERBackup
chcp 1250
Robocopy D: "A:OneDrive - Company" /A-:SH /R:0 /MIR /XF ~$*.* /XD "D:$RECYCLE.BIN" "D:System Volume Information" "D:FTP" "D:Scan" /NDL /NP /LOG+:"C:UsersrootDocumentsLOG%Today%.txt"
And i have really long ways and without any problem.
add a comment |
I just try do same process to backup all company files (1,17TB) to company OneDrive a i use this command:
@echo off
SET Today=%Date:~8,2%%Date:~3,2%%Date:~0,2%
net use a: \BACKUP_SERVERBackup
chcp 1250
Robocopy D: "A:OneDrive - Company" /A-:SH /R:0 /MIR /XF ~$*.* /XD "D:$RECYCLE.BIN" "D:System Volume Information" "D:FTP" "D:Scan" /NDL /NP /LOG+:"C:UsersrootDocumentsLOG%Today%.txt"
And i have really long ways and without any problem.
add a comment |
I just try do same process to backup all company files (1,17TB) to company OneDrive a i use this command:
@echo off
SET Today=%Date:~8,2%%Date:~3,2%%Date:~0,2%
net use a: \BACKUP_SERVERBackup
chcp 1250
Robocopy D: "A:OneDrive - Company" /A-:SH /R:0 /MIR /XF ~$*.* /XD "D:$RECYCLE.BIN" "D:System Volume Information" "D:FTP" "D:Scan" /NDL /NP /LOG+:"C:UsersrootDocumentsLOG%Today%.txt"
And i have really long ways and without any problem.
I just try do same process to backup all company files (1,17TB) to company OneDrive a i use this command:
@echo off
SET Today=%Date:~8,2%%Date:~3,2%%Date:~0,2%
net use a: \BACKUP_SERVERBackup
chcp 1250
Robocopy D: "A:OneDrive - Company" /A-:SH /R:0 /MIR /XF ~$*.* /XD "D:$RECYCLE.BIN" "D:System Volume Information" "D:FTP" "D:Scan" /NDL /NP /LOG+:"C:UsersrootDocumentsLOG%Today%.txt"
And i have really long ways and without any problem.
answered Jan 18 at 6:48
Ladislav HrňaLadislav Hrňa
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1361707%2frobocopy-fat-option%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
See this answer here as well as some others on that post that may help you with this: superuser.com/questions/1119883/…. If you are able to NTFS long paths, then perhaps you won't have to deal with this at all.
– Pimp Juice IT
Sep 26 '18 at 23:10
Don't have the time to focus on this, but consider generating a list of files with the /L option to generate a list of those successfully copied, Flip their Archive bit with ATTRIB; then use the /A option of Robocopy to copy the uncopied files. Good luck, dude.
– K7AAY
Sep 26 '18 at 23:17