![]() ![]() If you're not using those desktops, I don't think you need to worry about gvfs. I'm not knocking gnome (or mate or cinnamon), just pointing out that I use KDE, and I don't have the gvfs package installed, and I use both Samba and NFS everyday Only created and used by gnome and desktops based on gnome (like mate and cinnamon). gvfs directory for anyone reading this thread. AFAIK, the rsync behavior related to -exclude has not changed. I can't explain why you believe your original command line was working months ago but isn't Just cut and paste those commands: they won't work as written, you must add the command line In all of the above rsync examples, I have knowingly and intentionally left off any rsync command lineĪrguments (like -v, -a, etc) that you would normally use so as not to be distracting. I can't say I learned this from the manual page, but from trying rsync over and over til it started So I believe you have other -excludes that aren't working for you either. Rsync -exclude JIM/.gvfs -exclude BOB/.gvfs /home/ /media/BACKUP For example, if you have 2 users JIM and BOB, you could With /home/*/.gvfs If you're unfamiliar with using the '*' metacharacter, you could alternativelyĮxplicitly exclude each user's directory. So that when rsync appends the exclude path (*/.gvfs) to the source path (/home/) you end up Rsync -exclude */.gvfs /home/ /media/BACKUP/ If you were backing up all of /home and you had more than one USER each of which might Set the exclude path to just ".gvfs" so when rsync puts them together, you end up with Rsync will append the excluded path (/home/USER/.gvfs) to the source path (/home/USER) andĮnd up excluding this: /home/USER/home/USER/.gvfs, which is not what you want. Rsync -exclude /home/USER/.gvfs /home/USER/ /media/BACKUP/ If you run rsync like this (for example): Need to be named relative to your source directory. > I would like to know why it is better and why what I did before didn't work.įor regular directories or files you want to exclude, they Okedoke, you've thought about it, that's a fine reason. I do have another session set up to backup both. There is another user and, in this instance, Other peopleĭon't agree with that opinion, that's fine, I'm just asking that you think Them and not need them than need them and not have them. Some tmp files that I know I'm never going to need. If I had the space, I wouldn't care that I was copying over It's a lot easier to just back up everything in /home excluding only. home/USER, but if you have plenty of space on the target, in my opinion, ![]() Up all of /home? I'm not saying there's anything wrong backing up only If yes, is /home on a separate partition? If yes, why don't you just back ![]() Take a step back and explain what you're working on? I think you want toĭo a backup of /home/USER, is that correct? I think you've got your direct question answered (.gvfs), but do you want to I don't know if grsync providesĪ way to do that or not, up to you to figure that out. ![]() Using the "-n" (dry run, just tell you what it would do without actuallyĭoing anything) option on rsync is a great way to learn how rsync wouldīehave without actually changing anything. I've learned a lot more by using trial and error. I've tried reading the rsync manual page to make sense of the FILTER section,Īnd I haven't had much luck with it. Check your target directory and you willįind stuff that you thought you were excluding. Other -exclude syntax-s are incorrect as well, but rsync just never complainedĪbout them so you didn't notice. gvfs does work, I believe you're going to find that your ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |