Linux help, backup ONLY permissions - futures io
futures io futures trading



Linux help, backup ONLY permissions


Discussion in Tech Support

Updated September 13th 2009 by Big Mike
    1. trending_up 1,783 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 replies
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,786 since Jun 2009
Thanks: 31,500 given, 94,188 received

Linux help, backup ONLY permissions

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/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
(login for full post details)
  #2 (permalink)
Administrator: Retired Backtester
Rennes France
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB/Kinetick
Trading: Futures
 
sam028's Avatar
 
Posts: 3,617 since Jun 2009
Thanks: 3,755 given, 4,420 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)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,786 since Jun 2009
Thanks: 31,500 given, 94,188 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/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote


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


September 13, 2009


Upcoming Webinars and Events
 

Free BloodHound Licenses for everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 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