▲ 397 ▼ This just happened to me today (lemmy.ml) submitted 3 years ago by boratul@lemmy.ml to c/programmerhumor@lemmy.ml 18 comments fedilink hide all child comments It took 2 more hours than it should have to copy 125GB
[–] bigkahuna1986@lemmy.ml 44 points 3 years ago (1 child) Have you tried rsync? permalink fedilink source hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 17 points 3 years ago (1 child) Can it resume interrupted writes? permalink fedilink source parent hideshow 2 child comments replies: [–] bigkahuna1986@lemmy.ml 46 points 3 years ago* (4 children) Heck to the yeah. I usually run rsync -av src/ dst/ Which is verbose and archive mode (keeps mod times, user, etc). You can also add -P for progress. Here is the man page https://linux.die.net/man/1/rsync If it gets interrupted, just run that same command again. Edit: also it's usually preinstalled on every Linux distro and should be easy to install for Windows too. permalink fedilink source parent hideshow 8 child comments replies: [–] user224@lemmy.sdf.org 16 points 3 years ago By the way, --info=progress2 will show a total progress information. permalink fedilink source parent [–] QuazarOmega@lemy.lol 11 points 3 years ago Woah, that's amazing! Can't believe I've been sleeping on it for so long permalink fedilink source parent [–] AClassyGentleman@lemmy.world 9 points 3 years ago I feel like rsync may genuinely be one of the best, most slept on tools out there. It even works over ssh. permalink fedilink source parent [–] camr_on@lemmy.world 5 points 3 years ago (1 child) I like to add --ignore-existing to it aswell in case it gets interrupted. Useful when it's a timed backup or similar permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 1 point 3 years ago (1 child) If it doesn’t ignore existing by default, what’s the difference between that and plain old copy? permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent
[–] QuazarOmega@lemy.lol 17 points 3 years ago (1 child) Can it resume interrupted writes? permalink fedilink source parent hideshow 2 child comments replies: [–] bigkahuna1986@lemmy.ml 46 points 3 years ago* (4 children) Heck to the yeah. I usually run rsync -av src/ dst/ Which is verbose and archive mode (keeps mod times, user, etc). You can also add -P for progress. Here is the man page https://linux.die.net/man/1/rsync If it gets interrupted, just run that same command again. Edit: also it's usually preinstalled on every Linux distro and should be easy to install for Windows too. permalink fedilink source parent hideshow 8 child comments replies: [–] user224@lemmy.sdf.org 16 points 3 years ago By the way, --info=progress2 will show a total progress information. permalink fedilink source parent [–] QuazarOmega@lemy.lol 11 points 3 years ago Woah, that's amazing! Can't believe I've been sleeping on it for so long permalink fedilink source parent [–] AClassyGentleman@lemmy.world 9 points 3 years ago I feel like rsync may genuinely be one of the best, most slept on tools out there. It even works over ssh. permalink fedilink source parent [–] camr_on@lemmy.world 5 points 3 years ago (1 child) I like to add --ignore-existing to it aswell in case it gets interrupted. Useful when it's a timed backup or similar permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 1 point 3 years ago (1 child) If it doesn’t ignore existing by default, what’s the difference between that and plain old copy? permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent
[–] bigkahuna1986@lemmy.ml 46 points 3 years ago* (4 children) Heck to the yeah. I usually run rsync -av src/ dst/ Which is verbose and archive mode (keeps mod times, user, etc). You can also add -P for progress. Here is the man page https://linux.die.net/man/1/rsync If it gets interrupted, just run that same command again. Edit: also it's usually preinstalled on every Linux distro and should be easy to install for Windows too. permalink fedilink source parent hideshow 8 child comments replies: [–] user224@lemmy.sdf.org 16 points 3 years ago By the way, --info=progress2 will show a total progress information. permalink fedilink source parent [–] QuazarOmega@lemy.lol 11 points 3 years ago Woah, that's amazing! Can't believe I've been sleeping on it for so long permalink fedilink source parent [–] AClassyGentleman@lemmy.world 9 points 3 years ago I feel like rsync may genuinely be one of the best, most slept on tools out there. It even works over ssh. permalink fedilink source parent [–] camr_on@lemmy.world 5 points 3 years ago (1 child) I like to add --ignore-existing to it aswell in case it gets interrupted. Useful when it's a timed backup or similar permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 1 point 3 years ago (1 child) If it doesn’t ignore existing by default, what’s the difference between that and plain old copy? permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent
[–] user224@lemmy.sdf.org 16 points 3 years ago By the way, --info=progress2 will show a total progress information. permalink fedilink source parent
[–] QuazarOmega@lemy.lol 11 points 3 years ago Woah, that's amazing! Can't believe I've been sleeping on it for so long permalink fedilink source parent
[–] AClassyGentleman@lemmy.world 9 points 3 years ago I feel like rsync may genuinely be one of the best, most slept on tools out there. It even works over ssh. permalink fedilink source parent
[–] camr_on@lemmy.world 5 points 3 years ago (1 child) I like to add --ignore-existing to it aswell in case it gets interrupted. Useful when it's a timed backup or similar permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 1 point 3 years ago (1 child) If it doesn’t ignore existing by default, what’s the difference between that and plain old copy? permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent
[–] KIM_JONG_JUICEBOX@lemmy.ml 1 point 3 years ago (1 child) If it doesn’t ignore existing by default, what’s the difference between that and plain old copy? permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent
[–] bjorney@lemmy.ca 2 points 3 years ago* Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik. If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network) permalink fedilink source parent