Show whats going on restoring files from a spectrum protect backup

watch -n60 -d 'lsof -w /filesysname|grep -v NAME|awk '\''{$7=int($7/1073741824) " GB"; print $7, $9}'\'''
spectrum protect's dsmc command shows file names and total amount of restore. This command shows which files are actually open and their siz in GB and highlights the change to the previous output
Sample Output
Every 60.0s: lsof -w /filesysname|grep -v NAME|awk '{$7=int($7/1073741824) " GB"; print $7, $9}'                                                                                                                 Mon Sep  2 13:44:08 2019

6 GB /filesysname/dev_workspaces/tcga/data/urls_tp_2/files/79c77220-5759-41cb-8b70-8fdcd68fa856/TCGA-CG-5727-01A-11D-1598_121011_SN208_0435_BD1E43ACXX_s_3_rg.sorted.bam
10 GB /filesysname/dev_workspaces/tcga/data/urls_tp_2/files/85ca0eb9-8ca8-4f11-80e1-04c6d139c6f5/TCGA-BR-6801-01A-11D-1880_121220_SN1222_0164_BC1HJ3ACXX_s_5_rg.sorted.bam

By: BodoGreif
2019-09-02 11:49:20

What Others Think

learned alot here thanks for posting this welding tallahassee !
looneyhans · 61 weeks and 4 days ago
cabinets waco Good article, but it would be better if in future you can share more about this subject. Keep posting
yeoyeo · 55 weeks and 2 days ago
thank you for this! really appreciate you doing this jet
sammm · 52 weeks and 1 day ago
An in-depth article, I understand harder but I have a lot of research. I am so happy to have discovered it and am learning so many new things. random street view
hebelee · 25 weeks and 5 days ago
Thanks a lot for sharing this with me. It is a new thing for me to get from here to learn about the commands and new features from here. I hope you will also find this as a good one.">buy loose diamonds online wholesale
zaiyamariya · 17 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: