Bash script - TurboDelete...

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
invex
Level 4
Level 4
Posts: 219
Joined: Sun Aug 14, 2016 12:38 pm

Bash script - TurboDelete...

Post by invex »

I published turbodelete script on Github https://github.com/invexx/turbodelete which quickly deletes huge directories using rsync.

I'd like to know if there is an even faster method.

TIA
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gm10

Re: Bash script - TurboDelete...

Post by gm10 »

No, rsync is probably the fastest way, or at least it's what I use, too. But your implementation is way complicated. I have this in my .bashrc:

Code: Select all

deldir() {
  sudo rsync -rd /dev/null "$1" 1>/dev/null
  sudo rm -rf "$1" 1>/dev/null
}
User avatar
invex
Level 4
Level 4
Posts: 219
Joined: Sun Aug 14, 2016 12:38 pm

Re: Bash script - TurboDelete...

Post by invex »

gm10 wrote: Thu Sep 27, 2018 4:27 pm No, rsync is probably the fastest way, or at least it's what I use, too. But your implementation is way complicated. I have this in my .bashrc:

Code: Select all

deldir() {
  sudo rsync -rd /dev/null "$1" 1>/dev/null
  sudo rm -rf "$1" 1>/dev/null
}
Thanks for the tip.
Locked

Return to “Scripts & Bash”