Linux help, backup ONLY permissions - futures io
futures io



Linux help, backup ONLY permissions


Discussion in Tech Support

Updated
    1. trending_up 1,954 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Linux help, backup ONLY permissions

(login for full post details)
  #1 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 49,973 since Jun 2009
Thanks: 32,440 given, 98,180 received

I know there are a few *nix guys here. I need to make a backup of _only_ the file/directory permissions, not the content of files, and need a way to restore said permissions as well. It's nested for thousands of files and hundreds of directories so a script is required.

Can anyone think of a way to do this? (sam?)

In the event a restore is needed, I need to be able to have the restore command apply permissions to existing files.

Again, I don't want to backup data, just permissions.

thx

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(82 thanks from 13 posts)
looks_twoSalao's Journalby Salao
(25 thanks from 6 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(25 thanks from 9 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(12 thanks from 7 posts)
looks_5Maybe a little bit different journalby Malykubo
(7 thanks from 5 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
futures io site changelog and issues/problem reporting
76 thanks
The Crude Dude Oil Trading System
73 thanks
Would You Sell Your System?
71 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
35 thanks
Big Mike in Ecuador
31 thanks
 
(login for full post details)
  #2 (permalink)
 sam028 
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,670 since Jun 2009
Thanks: 3,789 given, 4,505 received

Two smal Perl scripts, one for saving permissions, another one for resting them.
Usage:
./saveState.pl /tmp > tmp.txt
./applyState.pl tmp.txt

Attached Files
Register to download File Type: zip saveperms.zip (682 Bytes, 8 views)
Follow me on Twitter Reply With Quote
The following user says Thank You to sam028 for this post:
 
(login for full post details)
  #3 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 49,973 since Jun 2009
Thanks: 32,440 given, 98,180 received



sam028 View Post
Two smal Perl scripts, one for saving permissions, another one for resting them.
Usage:
./saveState.pl /tmp > tmp.txt
./applyState.pl tmp.txt


Sam 'da man I was trying to do it with bash, hand't considered using perl. Awesome, thx!

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote


futures io Trading Community Off-Topic Tech Support > Linux help, backup ONLY permissions


Last Updated on September 13, 2009


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
 

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts