ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Ubuntu: How to exclude multiple directories with rsync?

ubuntu

command line

rsync

problem

solution

answers

shell

Автор: Роэль Ван де Паар (Техническая помощь Роэля)

Загружено: 2019-06-19

Просмотров: 441

Описание: Ubuntu: How to exclude multiple directories with rsync?


Question: I am trying to backup my home directory using rsync, and I want to exclude some
of the directories that contain junk. I want to specifically exclude /home/
ben/.ccache and /home/ben/build. Unfortunately the documentation for rsync was
information overload and didn't answer my question. This is what I tried:
rsync -arv --exclude "/home/ben/.ccache:/home/ben/build" /home/ben /media/ben/
thumbdrive/
What is the right way to do this?

Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):

== This solution helped 208 people ==
OK I feel really dumb. Before I even posted this question my friend showed me
how to do it and it is really simple. To exclude multiple directories you just
use multiple --exclude=path switches. So my command above properly written is
as follows:
rsync -arv --exclude=.ccache --exclude=build /home/ben /media/ben/thumbdrive/

== This solution helped 69 people ==
You can also exclude multiple paths within curly braces:
rsync -arv --exclude={.ccache,build} /home/ben /media/ben/thumbdrive/

With thanks & praise to God! With thanks to all the many who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music & music license: https://www.bensound.com/royalty-free... | Images & images license: https://stocksnap.io/license and others | With thanks to user user228759 (https://askubuntu.com/users/228759), user tripleee (https://askubuntu.com/users/25077), user György Ráth (https://askubuntu.com/users/328108), user Freedom_Ben (https://askubuntu.com/users/136192), user Freedom_Ben (https://askubuntu.com/users/136192), user bryan kennedy (https://askubuntu.com/users/244567), and the Stack Exchange Network (http://askubuntu.com/questions/320458). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Ubuntu: How to exclude multiple directories with rsync?

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

QEMU/KVM for absolute beginners

QEMU/KVM for absolute beginners

Linux Command Line Tutorial For Beginners 2 - ls command in Linux

Linux Command Line Tutorial For Beginners 2 - ls command in Linux

13 Linux Commands Every Engineer Should Know (Real-World Example)

13 Linux Commands Every Engineer Should Know (Real-World Example)

Learn the Linux Fundamentals - Part 2

Learn the Linux Fundamentals - Part 2

you need to learn tmux RIGHT NOW!!

you need to learn tmux RIGHT NOW!!

Обучение Linux. От новичка до профи. Часть 1

Обучение Linux. От новичка до профи. Часть 1

Россия стягивает войска / Президент выступил с заявлением

Россия стягивает войска / Президент выступил с заявлением

How to use a multimeter like a pro! The Ultimate guide

How to use a multimeter like a pro! The Ultimate guide

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Отмена рейсов, интернета и навигации | Как живёт Россия в условиях войны (English sub) @Max_Katz

Отмена рейсов, интернета и навигации | Как живёт Россия в условиях войны (English sub) @Max_Katz

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]