Advertisement
Guest User

Untitled

a guest
May 13th, 2017
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #/bin/bash
  2.  
  3. marcfs=/path/to/marcfs/binary
  4. dest_dir=/path/to/dest/dir
  5.  
  6. # Make all needed dirs
  7. mkdir -p $dest_dir /tmp/markfs/cloud1 /tmp/markfs/cloud2 # /tmp/markfs/cloud3...
  8.  
  9. # Init marcfs
  10. $markfs /mnt/MailRuCloud1 -o username=First@mail.ru,password=pass_for_this_account1,cachedir=/tmp/marcfs/cloud1
  11. $markfs /mnt/MailRuCloud2 -o username=Second@mail.ru,password=pass_for_this_account2,cachedir=/tmp/marcfs/cloud2
  12. # ...
  13.  
  14. # Mount markfs dirs in
  15. mhddfs /mnt/MailRuCloud1,/mnt/MailRuCloud2 $dest_dir
  16.  
  17. # Now we have union of Sirst's and Second's clouds at $dest_dir!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement