Robocopy /fat option












1















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.










share|improve this question























  • 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


















1















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.










share|improve this question























  • 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
















1












1








1








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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





















  • 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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer




























      0














      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.






      share|improve this answer


























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 18 at 6:48









        Ladislav HrňaLadislav Hrňa

        1




        1






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Plaza Victoria

            Brian Clough

            Cáceres