Importing a repository "over" an existing repository

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Importing a repository "over" an existing repository

dan.j.marques@gmail.com
Hello.

If I import a repository from a path, what will happen to the existing artifacts in that repository?  What will happen for artifacts that exist in both?

For example, if I accidentally deleted some artifacts from a repo, could I just re import that repo from an older export of that.  Would it complain about conflicts?  Would artifacts in the repo (but not in the export file) remain after the export?

Thanks.
Dan

------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Importing a repository "over" an existing repository

Fred Simon

It will just aggregate on top of the existing files.

Hope this helps,
Fred.

On Nov 6, 2015 6:54 PM, "Daniel Marques" <[hidden email]> wrote:
Hello.

If I import a repository from a path, what will happen to the existing artifacts in that repository?  What will happen for artifacts that exist in both?

For example, if I accidentally deleted some artifacts from a repo, could I just re import that repo from an older export of that.  Would it complain about conflicts?  Would artifacts in the repo (but not in the export file) remain after the export?

Thanks.
Dan

------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Importing a repository "over" an existing repository

HughG_TMVSE
In reply to this post by dan.j.marques@gmail.com

Hi Dan,

 

I’ve previously (in Artifactory 3.x) imported a backup/export into the same repo and, indeed, it just added any artifacts which were in the backup but not currently in the repo.

 

BTW, something about Artifactory’s schedule backups which surprised me: at least in 3.x, they’re not cumulative.  By that I mean, each time the backup runs, it will delete files from your backup area which have been deleted from the “real” repos.  So to get a long-term backup, you need to separately back up the backup area, at a time when you know there are no Artifactory scheduled backups running.

 

Regards,

 

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / [hidden email]

 

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.

 

From: Daniel Marques [mailto:[hidden email]]
Sent: 06 November 2015 23:55
To: [hidden email]
Subject: [Artifactory-users] Importing a repository "over" an existing repository

 

Hello.

 

If I import a repository from a path, what will happen to the existing artifacts in that repository?  What will happen for artifacts that exist in both?

 

For example, if I accidentally deleted some artifacts from a repo, could I just re import that repo from an older export of that.  Would it complain about conflicts?  Would artifacts in the repo (but not in the export file) remain after the export?

 

Thanks.
Dan


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Importing a repository "over" an existing repository

dan.j.marques@gmail.com
Thanks for the response.

I observed similar behavior, (in 2.5 and 2.6).  If I exported a repository (not system export) from Artifactory instance, and imported it to another instance, it added the artifacts that were in the export, but didn't overwrite or delete those that were in the target instance.
As far as I can tell, the system level export (backup file), is a superset of what gets produced by the repo level backup.  It seems to me, but I can't confirm, that you can do a repository level import from a backup's repository directory.



On Mon, Nov 9, 2015 at 5:12 AM, Greene, Hugh <[hidden email]> wrote:

Hi Dan,

 

I’ve previously (in Artifactory 3.x) imported a backup/export into the same repo and, indeed, it just added any artifacts which were in the backup but not currently in the repo.

 

BTW, something about Artifactory’s schedule backups which surprised me: at least in 3.x, they’re not cumulative.  By that I mean, each time the backup runs, it will delete files from your backup area which have been deleted from the “real” repos.  So to get a long-term backup, you need to separately back up the backup area, at a time when you know there are no Artifactory scheduled backups running.

 

Regards,

 

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel <a href="tel:%2B%2044%20%280%29131%20472%204792" value="+441314724792" target="_blank">+ 44 (0)131 472 4792 / Fax <a href="tel:%2B%2044%20%280%29%20131%20472%204799" value="+441314724799" target="_blank">+ 44 (0) 131 472 4799
http://www.tmvse.com / [hidden email]

 

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.

 

From: Daniel Marques [mailto:[hidden email]]
Sent: 06 November 2015 23:55
To: [hidden email]
Subject: [Artifactory-users] Importing a repository "over" an existing repository

 

Hello.

 

If I import a repository from a path, what will happen to the existing artifacts in that repository?  What will happen for artifacts that exist in both?

 

For example, if I accidentally deleted some artifacts from a repo, could I just re import that repo from an older export of that.  Would it complain about conflicts?  Would artifacts in the repo (but not in the export file) remain after the export?

 

Thanks.
Dan


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users