LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2015, 11:46 AM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Rep: Reputation: Disabled
how let folder be a shortcut to other foler


Hi all
i have a tool that do backup and send it to folder==> /var/www/html/backup

but this will do the backup on the drice od the OS and sometimes the backup let the hdd os full ,
also in same time i cant change the folder of backup , it must be always ""/var/www/html/backup""


but i have another idea , i have mounted a big hardisk on /Recording

and all i need is , i want to create a folder in /Recording such as it will be like /Recording/backup


so , all i need now is :
i want the backup that is done on "/var/www/html/backup" to be done actually on "/Recording/backup" ????

is there a way to do the folder /var/www/html/backup as a shortcut to the folder /Recording/backup such as all tasks and operations done on /var/www/html/backup , be done on /var/www/html/backup ???

again , all i need is to save my hdd space and let it done on the other big hdd that is mounted on /Recording/backup


thanks alot and hope to help me

cheers
 
Old 04-21-2015, 11:50 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can move the /var/www/html/backup folder to /Recording folder and put a symlink.

Code:
mv /var/www/html/backup /Recording
ln -s /Recording/backup /var/www/html
 
1 members found this post helpful.
Old 04-21-2015, 12:12 PM   #3
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
hi , thankx alot , but agian
do u mean :

mv /var/www/html/backup /Recording
ln -s /Recording/backup /var/www/html

or


mv /var/www/html/backup /Recording
ln -s /Recording/backup /var/www/html/backup

????

cheers
 
Old 04-21-2015, 12:13 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Both work!
 
1 members found this post helpful.
Old 04-21-2015, 12:20 PM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Always run a dummy test! It saves a lot of anger and frustration.
 
1 members found this post helpful.
Old 04-21-2015, 12:22 PM   #6
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
thank you alot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot copy Windows folder with shortcut with Ubuntu miros84 Linux - Software 8 01-04-2013 01:05 PM
can I access a foler in windows 7 while in Ubuntu on the same computer? ronaldguilmet Linux - Newbie 2 03-14-2012 02:05 PM
Folder shortcut on KDE Desktop? an_sush Linux - Newbie 2 11-04-2008 10:47 AM
Root Folder Shortcut Shoal Linux - Newbie 6 08-11-2004 12:02 PM
home folder shortcut? ScreeminChikin Linux - General 2 09-26-2002 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration